@@ -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 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | if (!isset($this->config['channels'][$name])) { |
133 | - throw new InvalidArgumentException('Undefined log config:' . $name); |
|
133 | + throw new InvalidArgumentException('Undefined log config:'.$name); |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | $config = $this->config['channels'][$name]; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | if (is_string($msg) && !empty($context)) { |
197 | 197 | $replace = []; |
198 | 198 | foreach ($context as $key => $val) { |
199 | - $replace['{' . $key . '}'] = $val; |
|
199 | + $replace['{'.$key.'}'] = $val; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | $msg = strtr($msg, $replace); |