@@ -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\middleware; |
14 | 14 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | // 注册日志监听 |
62 | 62 | if ($debug) { |
63 | 63 | $this->log = []; |
64 | - $this->app->event->listen(LogWrite::class, function ($event) { |
|
64 | + $this->app->event->listen(LogWrite::class, function($event) { |
|
65 | 65 | if (empty($this->config['channel']) || $this->config['channel'] == $event->channel) { |
66 | 66 | $this->log = array_merge_recursive($this->log, $event->log); |
67 | 67 | } |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | // trace调试信息注入 |
100 | 100 | $pos = strripos($content, '</body>'); |
101 | 101 | if (false !== $pos) { |
102 | - $content = substr($content, 0, $pos) . $output . substr($content, $pos); |
|
102 | + $content = substr($content, 0, $pos).$output.substr($content, $pos); |
|
103 | 103 | } else { |
104 | - $content = $content . $output; |
|
104 | + $content = $content.$output; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |