@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | // +---------------------------------------------------------------------- |
| 9 | 9 | // | Author: liu21st <[email protected]> |
| 10 | 10 | // +---------------------------------------------------------------------- |
| 11 | -declare (strict_types = 1); |
|
| 11 | +declare(strict_types=1); |
|
| 12 | 12 | |
| 13 | 13 | namespace think; |
| 14 | 14 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | if (!isset($this->config['channels'][$name])) { |
| 129 | - throw new InvalidArgumentException('Undefined log config:' . $name); |
|
| 129 | + throw new InvalidArgumentException('Undefined log config:'.$name); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | if (isset($this->config['channels'][$name]['processor'])) { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if (is_string($msg) && !empty($context)) { |
| 187 | 187 | $replace = []; |
| 188 | 188 | foreach ($context as $key => $val) { |
| 189 | - $replace['{' . $key . '}'] = $val; |
|
| 189 | + $replace['{'.$key.'}'] = $val; |
|
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | $msg = strtr($msg, $replace); |