Passed
Push — 5.2 ( 3e2708...a249a7 )
by liu
05:10
created
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.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/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.
src/think/console/output/question/Confirmation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $default = $this->getDefault();
42 42
         $regex   = $this->trueAnswerRegex;
43 43
 
44
-        return function ($answer) use ($default, $regex) {
44
+        return function($answer) use ($default, $regex) {
45 45
             if (is_bool($answer)) {
46 46
                 return $answer;
47 47
             }
Please login to merge, or discard this patch.
src/think/console/output/question/Choice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         $multiselect  = $this->multiselect;
109 109
         $isAssoc      = $this->isAssoc($choices);
110 110
 
111
-        return function ($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) {
111
+        return function($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) {
112 112
             // Collapse all spaces.
113 113
             $selectedChoices = str_replace(' ', '', $selected);
114 114
 
Please login to merge, or discard this patch.
src/think/cache/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\cache\driver;
14 14
 
Please login to merge, or discard this patch.
src/think/cache/driver/Memcache.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach ($hosts as $i => $host) {
57 57
             $port = $ports[$i] ?? $ports[0];
58 58
             $this->options['timeout'] > 0 ?
59
-            $this->handler->addServer($host, $port, $this->options['persistent'], 1, $this->options['timeout']) :
60
-            $this->handler->addServer($host, $port, $this->options['persistent'], 1);
59
+            $this->handler->addServer($host, $port, $this->options['persistent'], 1, $this->options['timeout']) : $this->handler->addServer($host, $port, $this->options['persistent'], 1);
61 60
         }
62 61
     }
63 62
 
@@ -174,8 +173,7 @@  discard block
 block discarded – undo
174 173
         $key = $this->getCacheKey($name);
175 174
 
176 175
         return false === $ttl ?
177
-        $this->handler->delete($key) :
178
-        $this->handler->delete($key, $ttl);
176
+        $this->handler->delete($key) : $this->handler->delete($key, $ttl);
179 177
     }
180 178
 
181 179
     /**
Please login to merge, or discard this patch.