@@ -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 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public function getConfig(string $name = null, $default = null) |
57 | 57 | { |
58 | 58 | if (!is_null($name)) { |
59 | - return $this->app->config->get('log.' . $name, $default); |
|
59 | + return $this->app->config->get('log.'.$name, $default); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | return $this->app->config->get('log'); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function record($msg, string $type = 'info', array $context = [], bool $lazy = true) |
182 | 182 | { |
183 | - $channel = $this->getConfig('type_channel.' . $type); |
|
183 | + $channel = $this->getConfig('type_channel.'.$type); |
|
184 | 184 | |
185 | 185 | $this->channel($channel)->record($msg, $type, $context, $lazy); |
186 | 186 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | // +---------------------------------------------------------------------- |
9 | 9 | // | Author: yunwuxin <[email protected]> |
10 | 10 | // +---------------------------------------------------------------------- |
11 | -declare (strict_types = 1); |
|
11 | +declare(strict_types=1); |
|
12 | 12 | |
13 | 13 | namespace think; |
14 | 14 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | protected function resolveClass(string $type): string |
94 | 94 | { |
95 | 95 | if ($this->namespace || false !== strpos($type, '\\')) { |
96 | - $class = false !== strpos($type, '\\') ? $type : $this->namespace . Str::studly($type); |
|
96 | + $class = false !== strpos($type, '\\') ? $type : $this->namespace.Str::studly($type); |
|
97 | 97 | |
98 | 98 | if (class_exists($class)) { |
99 | 99 | return $class; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $type = $this->resolveType($name); |
116 | 116 | $config = $this->resolveConfig($name); |
117 | 117 | |
118 | - $method = 'create' . Str::studly($type) . 'Driver'; |
|
118 | + $method = 'create'.Str::studly($type).'Driver'; |
|
119 | 119 | |
120 | 120 | if (method_exists($this, $method)) { |
121 | 121 | return $this->$method($config); |