@@ -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; |
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; |
14 | 14 |
@@ -8,7 +8,7 @@ discard block |
||
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\route; |
14 | 14 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | // 指定Header数据 |
161 | 161 | if (!empty($option['header'])) { |
162 | 162 | $header = $option['header']; |
163 | - $this->app['event']->listen('ResponseSend', function ($response) use ($header) { |
|
163 | + $this->app['event']->listen('ResponseSend', function($response) use ($header) { |
|
164 | 164 | $response->header($header); |
165 | 165 | }); |
166 | 166 | } |
@@ -8,7 +8,7 @@ discard block |
||
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\route; |
14 | 14 | |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * @access public |
361 | 361 | * @return RuleItem|null |
362 | 362 | */ |
363 | - public function getMissRule(): ? RuleItem |
|
363 | + public function getMissRule(): ? RuleItem |
|
364 | 364 | { |
365 | 365 | return $this->miss; |
366 | 366 | } |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * @access public |
514 | 514 | * @return string |
515 | 515 | */ |
516 | - public function getFullName(): ? string |
|
516 | + public function getFullName(): ? string |
|
517 | 517 | { |
518 | 518 | return $this->fullName; |
519 | 519 | } |
@@ -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\route; |
14 | 14 |
@@ -8,7 +8,7 @@ discard block |
||
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\route; |
14 | 14 | |
@@ -829,7 +829,7 @@ discard block |
||
829 | 829 | protected function parseUrlParams(string $url, array &$var = []): void |
830 | 830 | { |
831 | 831 | if ($url) { |
832 | - preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) { |
|
832 | + preg_replace_callback('/(\w+)\|([^\|]+)/', function($match) use (&$var) { |
|
833 | 833 | $var[$match[1]] = strip_tags($match[2]); |
834 | 834 | }, $url); |
835 | 835 | } |
@@ -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\route; |
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\route; |
14 | 14 |
@@ -8,7 +8,7 @@ discard block |
||
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\route\dispatch; |
14 | 14 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | throw new HttpException(404, 'controller not exists:' . $e->getClass()); |
62 | 62 | } |
63 | 63 | |
64 | - $this->app['middleware']->controller(function (Request $request, $next) use ($instance) { |
|
64 | + $this->app['middleware']->controller(function(Request $request, $next) use ($instance) { |
|
65 | 65 | // 获取当前操作名 |
66 | 66 | $action = $this->actionName . $this->rule->config('action_suffix'); |
67 | 67 |