@@ -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\initializer; |
14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | public function init(App $app) |
33 | 33 | { |
34 | - $file = $app->getRootPath() . 'vendor/services.php'; |
|
34 | + $file = $app->getRootPath().'vendor/services.php'; |
|
35 | 35 | |
36 | 36 | $services = $this->services; |
37 | 37 |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -8,7 +8,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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); |
@@ -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\log; |
14 | 14 | |
@@ -86,7 +86,7 @@ discard block |
||
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); |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -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\file; |
14 | 14 | |
@@ -56,7 +56,7 @@ discard block |
||
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 |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -8,7 +8,7 @@ |
||
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 |