Completed
Push — 6.0 ( 58dbb9...e2b752 )
by yun
05:55
created
src/think/log/ChannelSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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\log;
14 14
 
Please login to merge, or discard this patch.
src/think/log/driver/Socket.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: luofei614 <weibo.com/luofei614>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\log\driver;
14 14
 
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
         if ($this->config['debug']) {
75 75
 
76 76
             if (isset($_SERVER['HTTP_HOST'])) {
77
-                $current_uri = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
77
+                $current_uri = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
78 78
             } else {
79
-                $current_uri = 'cmd:' . implode(' ', $_SERVER['argv']);
79
+                $current_uri = 'cmd:'.implode(' ', $_SERVER['argv']);
80 80
             }
81 81
 
82 82
             // 基本信息
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         foreach ($log as $type => $val) {
91 91
             $trace[] = [
92 92
                 'type' => 'groupCollapsed',
93
-                'msg'  => '[ ' . $type . ' ]',
93
+                'msg'  => '[ '.$type.' ]',
94 94
                 'css'  => isset($this->css[$type]) ? $this->css[$type] : '',
95 95
             ];
96 96
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         ];
177 177
 
178 178
         $msg     = @json_encode($logs);
179
-        $address = '/' . $client_id; //将client_id作为地址, server端通过地址判断将日志发布给谁
179
+        $address = '/'.$client_id; //将client_id作为地址, server端通过地址判断将日志发布给谁
180 180
 
181 181
         $this->send($this->config['host'], $msg, $address);
182 182
     }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     protected function send($host, $message = '', $address = '/')
251 251
     {
252
-        $url = 'http://' . $host . ':' . $this->port . $address;
252
+        $url = 'http://'.$host.':'.$this->port.$address;
253 253
         $ch  = curl_init();
254 254
 
255 255
         curl_setopt($ch, CURLOPT_URL, $url);
Please login to merge, or discard this patch.
src/think/log/Channel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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\log;
14 14
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         if (is_string($msg) && !empty($context)) {
87 87
             $replace = [];
88 88
             foreach ($context as $key => $val) {
89
-                $replace['{' . $key . '}'] = $val;
89
+                $replace['{'.$key.'}'] = $val;
90 90
             }
91 91
 
92 92
             $msg = strtr($msg, $replace);
Please login to merge, or discard this patch.
src/think/exception/ErrorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: 麦当苗儿 <[email protected]> <http://zjzit.cn>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/exception/RouteNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/exception/Handle.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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\exception;
14 14
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             }
74 74
 
75 75
             if ($this->app->config->get('log.record_trace')) {
76
-                $log .= PHP_EOL . $exception->getTraceAsString();
76
+                $log .= PHP_EOL.$exception->getTraceAsString();
77 77
             }
78 78
 
79 79
             $this->app->log->record($log, 'error');
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 
205 205
             ob_start();
206 206
             extract($data);
207
-            include $this->app->config->get('app.exception_tmpl') ?: __DIR__ . '/../../tpl/think_exception.tpl';
207
+            include $this->app->config->get('app.exception_tmpl') ?: __DIR__.'/../../tpl/think_exception.tpl';
208 208
 
209 209
             // 获取并清空缓存
210 210
             $data     = ob_get_clean();
@@ -258,10 +258,10 @@  discard block
 block discarded – undo
258 258
 
259 259
         if (strpos($message, ':')) {
260 260
             $name    = strstr($message, ':', true);
261
-            $message = $lang->has($name) ? $lang->get($name) . strstr($message, ':') : $message;
261
+            $message = $lang->has($name) ? $lang->get($name).strstr($message, ':') : $message;
262 262
         } elseif (strpos($message, ',')) {
263 263
             $name    = strstr($message, ',', true);
264
-            $message = $lang->has($name) ? $lang->get($name) . ':' . substr(strstr($message, ','), 1) : $message;
264
+            $message = $lang->has($name) ? $lang->get($name).':'.substr(strstr($message, ','), 1) : $message;
265 265
         } elseif ($lang->has($message)) {
266 266
             $message = $lang->get($message);
267 267
         }
Please login to merge, or discard this patch.
src/think/file/UploadedFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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\file;
14 14
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
             $target = $this->getTargetFile($directory, $name);
58 58
 
59
-            set_error_handler(function ($type, $msg) use (&$error) {
59
+            set_error_handler(function($type, $msg) use (&$error) {
60 60
                 $error = $msg;
61 61
             });
62 62
 
Please login to merge, or discard this patch.
src/think/event/HttpEnd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\event;
14 14
 
Please login to merge, or discard this patch.
src/think/event/RouteLoaded.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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\event;
14 14
 
Please login to merge, or discard this patch.