Passed
Push — 5.2 ( 3e2708...a249a7 )
by liu
05:10
created
src/think/db/builder/Pgsql.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\db\builder;
14 14
 
Please login to merge, or discard this patch.
src/think/db/Where.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\db;
14 14
 
Please login to merge, or discard this patch.
src/think/db/Raw.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\db;
14 14
 
Please login to merge, or discard this patch.
src/think/db/Fetch.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\db;
14 14
 
Please login to merge, or discard this patch.
src/think/db/connector/Mysql.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\db\connector;
14 14
 
Please login to merge, or discard this patch.
src/think/db/exception/ModelNotFoundException.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\db\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/db/exception/DataNotFoundException.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\db\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/db/exception/BindParamException.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\db\exception;
14 14
 
Please login to merge, or discard this patch.
src/think/Console.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 // +----------------------------------------------------------------------
7 7
 // | Author: zhangyajun <[email protected]>
8 8
 // +----------------------------------------------------------------------
9
-declare (strict_types = 1);
9
+declare(strict_types=1);
10 10
 
11 11
 namespace think;
12 12
 
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
     public function findNamespace(string $namespace)
516 516
     {
517 517
         $allNamespaces = $this->getNamespaces();
518
-        $expr          = preg_replace_callback('{([^:]+|)}', function ($matches) {
518
+        $expr          = preg_replace_callback('{([^:]+|)}', function($matches) {
519 519
             return preg_quote($matches[1]) . '[^:]*';
520 520
         }, $namespace);
521 521
         $namespaces = preg_grep('{^' . $expr . '}', $allNamespaces);
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     {
556 556
         $allCommands = array_keys($this->commands);
557 557
 
558
-        $expr = preg_replace_callback('{([^:]+|)}', function ($matches) {
558
+        $expr = preg_replace_callback('{([^:]+|)}', function($matches) {
559 559
             return preg_quote($matches[1]) . '[^:]*';
560 560
         }, $name);
561 561
 
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
             }
780 780
         }
781 781
 
782
-        $alternatives = array_filter($alternatives, function ($lev) use ($threshold) {
782
+        $alternatives = array_filter($alternatives, function($lev) use ($threshold) {
783 783
             return $lev < 2 * $threshold;
784 784
         });
785 785
         asort($alternatives);
Please login to merge, or discard this patch.