@@ -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\model; |
| 14 | 14 | |
@@ -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\session\driver; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -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 | |
@@ -256,7 +256,7 @@ discard block |
||
| 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 | |
@@ -114,7 +114,7 @@ |
||
| 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 | |
@@ -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\console\command; |
| 14 | 14 | |
@@ -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 | } |