@@ -8,7 +8,7 @@ |
||
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 |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -8,7 +8,7 @@ discard block |
||
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 |
||
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 | } |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -50,7 +50,7 @@ |
||
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 |
@@ -41,7 +41,7 @@ |
||
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 | } |
@@ -108,7 +108,7 @@ |
||
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 |
@@ -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\cache\driver; |
14 | 14 |
@@ -56,8 +56,7 @@ discard block |
||
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 |
||
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 | /** |