Completed
Push — 6.0 ( e35f34...af2f12 )
by liu
16:18
created
src/think/middleware/TraceDebug.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.