@@ -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\exception; |
14 | 14 | |
@@ -73,7 +73,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -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 |
@@ -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\filesystem; |
14 | 14 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $stream = fopen($file->getRealPath(), 'r'); |
118 | 118 | |
119 | 119 | $result = $this->putStream( |
120 | - $path = trim($path . '/' . $name, '/'), $stream, $options |
|
120 | + $path = trim($path.'/'.$name, '/'), $stream, $options |
|
121 | 121 | ); |
122 | 122 | |
123 | 123 | if (is_resource($stream)) { |
@@ -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\facade; |
14 | 14 |
@@ -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\facade; |
14 | 14 |