@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | public function log($level, string $message, array $context = []) |
| 10 | 10 | { |
| 11 | - print date('Y-m-d H:i:s') .' ' . $this->interpolate($message, $context) . PHP_EOL; |
|
| 11 | + print date('Y-m-d H:i:s').' '.$this->interpolate($message, $context).PHP_EOL; |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public function interpolate(string $message, array $context) |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $replace = array(); |
| 17 | 17 | foreach ($context as $key => $val) { |
| 18 | 18 | if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) { |
| 19 | - $replace['{' . $key . '}'] = $val; |
|
| 19 | + $replace['{'.$key.'}'] = $val; |
|
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | return strtr($message, $replace); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $replace = array(); |
| 31 | 31 | foreach ($context as $key => $val) { |
| 32 | 32 | if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) { |
| 33 | - $replace['{' . $key . '}'] = $val; |
|
| 33 | + $replace['{'.$key.'}'] = $val; |
|
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | return strtr($message, $replace); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class Debug implements LoggerInterface, LoggerAwareInterface |
| 10 | 10 | { |
| 11 | - use LoggerTrait,LoggerAwareTrait; |
|
| 11 | + use LoggerTrait, LoggerAwareTrait; |
|
| 12 | 12 | |
| 13 | 13 | public function log(string $level, string $message, array $context = []) |
| 14 | 14 | { |