Skip to content

Commit de64b09

Browse files
committed
Fix CS
1 parent 4357749 commit de64b09

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function getBundle($name, $first = true/*, $noDeprecation = false */)
236236
}
237237

238238
if (!isset($this->bundleMap[$name])) {
239-
throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your %s.php file?', $name, \get_class($this)));
239+
throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your %s.php file?', $name, static::class));
240240
}
241241

242242
if (true === $first) {
@@ -583,7 +583,7 @@ protected function initializeContainer()
583583
$oldContainer = null;
584584
if ($fresh = $cache->isFresh()) {
585585
// Silence E_WARNING to ignore "include" failures - don't use "@" to prevent silencing fatal errors
586-
$errorLevel = error_reporting(\E_ALL ^ \E_WARNING);
586+
$errorLevel = error_reporting(E_ALL ^ E_WARNING);
587587
$fresh = $oldContainer = false;
588588
try {
589589
if (file_exists($cache->getPath()) && \is_object($this->container = include $cache->getPath())) {
@@ -651,7 +651,7 @@ protected function initializeContainer()
651651
}
652652

653653
if (null === $oldContainer && file_exists($cache->getPath())) {
654-
$errorLevel = error_reporting(\E_ALL ^ \E_WARNING);
654+
$errorLevel = error_reporting(E_ALL ^ E_WARNING);
655655
try {
656656
$oldContainer = include $cache->getPath();
657657
} catch (\Throwable $e) {

Log/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ private function format($level, $message, array $context)
105105
$message = strtr($message, $replacements);
106106
}
107107

108-
return sprintf('%s [%s] %s', date(\DateTime::RFC3339), $level, $message).\PHP_EOL;
108+
return sprintf('%s [%s] %s', date(\DateTime::RFC3339), $level, $message).PHP_EOL;
109109
}
110110
}

Tests/Controller/ContainerControllerResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testGetControllerService()
3939

4040
$controller = $resolver->getController($request);
4141

42-
$this->assertInstanceOf(\get_class($this), $controller[0]);
42+
$this->assertInstanceOf(static::class, $controller[0]);
4343
$this->assertSame('controllerMethod1', $controller[1]);
4444
}
4545

Tests/DataCollector/RequestDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function provideControllerCallables()
9999
'"Regular" callable',
100100
[$this, 'testControllerInspection'],
101101
[
102-
'class' => RequestDataCollectorTest::class,
102+
'class' => self::class,
103103
'method' => 'testControllerInspection',
104104
'file' => __FILE__,
105105
'line' => $r1->getStartLine(),

Tests/Log/LoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function testContextExceptionKeyCanBeExceptionOrOtherValues()
186186
public function testFormatter()
187187
{
188188
$this->logger = new Logger(LogLevel::DEBUG, $this->tmpFile, function ($level, $message, $context) {
189-
return json_encode(['level' => $level, 'message' => $message, 'context' => $context]).\PHP_EOL;
189+
return json_encode(['level' => $level, 'message' => $message, 'context' => $context]).PHP_EOL;
190190
});
191191

192192
$this->logger->error('An error', ['foo' => 'bar']);

0 commit comments

Comments
 (0)