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