Skip to content

Commit d6de97d

Browse files
committed
[HttpKernel] apply coding standards
1 parent 27463e1 commit d6de97d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/Symfony/Component/HttpKernel/Log/Logger.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ public function __construct(string $minLevel = null, $output = null, callable $f
4444

4545
if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {
4646
switch ((int) ($_ENV['SHELL_VERBOSITY'] ?? $_SERVER['SHELL_VERBOSITY'])) {
47-
case -1: $minLevel = LogLevel::ERROR; break;
48-
case 1: $minLevel = LogLevel::NOTICE; break;
49-
case 2: $minLevel = LogLevel::INFO; break;
50-
case 3: $minLevel = LogLevel::DEBUG; break;
47+
case -1: $minLevel = LogLevel::ERROR;
48+
break;
49+
case 1: $minLevel = LogLevel::NOTICE;
50+
break;
51+
case 2: $minLevel = LogLevel::INFO;
52+
break;
53+
case 3: $minLevel = LogLevel::DEBUG;
54+
break;
5155
}
5256
}
5357
}
@@ -91,7 +95,7 @@ private function format(string $level, string $message, array $context, bool $pr
9195
if (str_contains($message, '{')) {
9296
$replacements = [];
9397
foreach ($context as $key => $val) {
94-
if (null === $val || is_scalar($val) || (\is_object($val) && method_exists($val, '__toString'))) {
98+
if (null === $val || \is_scalar($val) || (\is_object($val) && method_exists($val, '__toString'))) {
9599
$replacements["{{$key}}"] = $val;
96100
} elseif ($val instanceof \DateTimeInterface) {
97101
$replacements["{{$key}}"] = $val->format(\DateTime::RFC3339);

0 commit comments

Comments
 (0)