Passed
Pull Request — 5.2 (#1662)
by liu
05:59 queued 03:26
created
src/think/Exception.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;
14 14
 
Please login to merge, or discard this patch.
src/think/Validate.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;
14 14
 
Please login to merge, or discard this patch.
src/think/Process.php 1 patch
Spacing   +3 added lines, -3 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;
14 14
 
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
      */
863 863
     public function setEnv(array $env)
864 864
 {
865
-        $env = array_filter($env, function ($value) {
865
+        $env = array_filter($env, function($value) {
866 866
             return !is_array($value);
867 867
         });
868 868
 
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
     protected function buildCallback($callback)
1053 1053
 {
1054 1054
         $out      = self::OUT;
1055
-        $callback = function ($type, $data) use ($callback, $out) {
1055
+        $callback = function($type, $data) use ($callback, $out) {
1056 1056
             if ($out == $type) {
1057 1057
                 $this->addOutput($data);
1058 1058
             } else {
Please login to merge, or discard this patch.
src/think/log/driver/File.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\log\driver;
14 14
 
Please login to merge, or discard this patch.
src/think/route/Dispatch.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: 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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/think/route/RuleGroup.php 1 patch
Spacing   +3 added lines, -3 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\route;
14 14
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/think/route/RuleName.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\route;
14 14
 
Please login to merge, or discard this patch.
src/think/route/Rule.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: 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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/think/route/dispatch/Controller.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: 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
 block discarded – undo
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
 
Please login to merge, or discard this patch.