Passed
Push — 5.2 ( 61517e...2a99ba )
by liu
02:49
created
src/think/session/driver/Redis.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\session\driver;
14 14
 
Please login to merge, or discard this patch.
src/think/session/driver/Memcache.php 1 patch
Spacing   +2 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\session\driver;
14 14
 
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
         foreach ($hosts as $i => $host) {
60 60
             $port = $ports[$i] ?? $ports[0];
61 61
             $this->config['timeout'] > 0 ?
62
-            $this->handler->addServer($host, $port, $this->config['persistent'], 1, $this->config['timeout']) :
63
-            $this->handler->addServer($host, $port, $this->config['persistent'], 1);
62
+            $this->handler->addServer($host, $port, $this->config['persistent'], 1, $this->config['timeout']) : $this->handler->addServer($host, $port, $this->config['persistent'], 1);
64 63
         }
65 64
 
66 65
         return true;
Please login to merge, or discard this patch.
src/think/console/Table.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: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\console;
14 14
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                     $content .= $this->renderSeparator('middle');
257 257
                 } elseif (is_scalar($row)) {
258 258
                     $content .= $this->renderSeparator('cross-top');
259
-                    $array = str_pad($row, 3 * (count($this->colWidth) - 1) + array_reduce($this->colWidth, function ($a, $b) {
259
+                    $array = str_pad($row, 3 * (count($this->colWidth) - 1) + array_reduce($this->colWidth, function($a, $b) {
260 260
                         return $a + $b;
261 261
                     }));
262 262
 
Please login to merge, or discard this patch.
src/think/console/command/RouteList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
                 $sort = $this->sortBy[$sort];
115 115
             }
116 116
 
117
-            uasort($rows, function ($a, $b) use ($sort) {
117
+            uasort($rows, function($a, $b) use ($sort) {
118 118
                 $itemA = $a[$sort] ?? null;
119 119
                 $itemB = $b[$sort] ?? null;
120 120
 
Please login to merge, or discard this patch.
src/think/console/command/Version.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\console\command;
14 14
 
Please login to merge, or discard this patch.
src/think/console/command/RunServer.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: Slince <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\console\command;
14 14
 
Please login to merge, or discard this patch.
src/think/console/Command.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: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\console;
14 14
 
Please login to merge, or discard this patch.
src/think/console/Input.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: yunwuxin <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\console;
14 14
 
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
      */
449 449
     public function __toString()
450 450
     {
451
-        $tokens = array_map(function ($token) {
451
+        $tokens = array_map(function($token) {
452 452
             if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {
453 453
                 return $match[1] . $this->escapeToken($match[2]);
454 454
             }
Please login to merge, or discard this patch.
src/think/console/output/Ask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         $that = $this;
52 52
 
53
-        $interviewer = function () use ($that) {
53
+        $interviewer = function() use ($that) {
54 54
             return $that->doAsk();
55 55
         };
56 56
 
Please login to merge, or discard this patch.