Completed
Push — 6.0 ( 01a8ef...5714f8 )
by liu
05:45
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
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         // 注册日志监听
62 62
         if ($debug) {
63
-            $this->app->event->listen(LogWrite::class, function ($event) {
63
+            $this->app->event->listen(LogWrite::class, function($event) {
64 64
                 if (empty($this->config['channel']) || $this->config['channel'] == $event->channel) {
65 65
                     $this->log = array_merge_recursive($this->log, $event->log);
66 66
                 }
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
                 // trace调试信息注入
99 99
                 $pos = strripos($content, '</body>');
100 100
                 if (false !== $pos) {
101
-                    $content = substr($content, 0, $pos) . $output . substr($content, $pos);
101
+                    $content = substr($content, 0, $pos).$output.substr($content, $pos);
102 102
                 } else {
103
-                    $content = $content . $output;
103
+                    $content = $content.$output;
104 104
                 }
105 105
             }
106 106
         }
Please login to merge, or discard this patch.