@@ -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\event; |
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\event; |
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\event; |
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\event; |
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\event; |
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 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $this->config = array_merge($this->config, $config); |
40 | 40 | |
41 | 41 | if (empty($this->config['path'])) { |
42 | - $this->config['path'] = $app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'session' . DIRECTORY_SEPARATOR; |
|
42 | + $this->config['path'] = $app->getRootPath().'runtime'.DIRECTORY_SEPARATOR.'session'.DIRECTORY_SEPARATOR; |
|
43 | 43 | } elseif (substr($this->config['path'], -1) != DIRECTORY_SEPARATOR) { |
44 | 44 | $this->config['path'] .= DIRECTORY_SEPARATOR; |
45 | 45 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $lifetime = $this->config['expire']; |
77 | 77 | $now = time(); |
78 | 78 | |
79 | - $files = $this->findFiles($this->config['path'], function (SplFileInfo $item) use ($lifetime, $now) { |
|
79 | + $files = $this->findFiles($this->config['path'], function(SplFileInfo $item) use ($lifetime, $now) { |
|
80 | 80 | return $now - $lifetime > $item->getMTime(); |
81 | 81 | }); |
82 | 82 | |
@@ -118,12 +118,12 @@ discard block |
||
118 | 118 | { |
119 | 119 | if ($this->config['prefix']) { |
120 | 120 | // 使用子目录 |
121 | - $name = $this->config['prefix'] . DIRECTORY_SEPARATOR . 'sess_' . $name; |
|
121 | + $name = $this->config['prefix'].DIRECTORY_SEPARATOR.'sess_'.$name; |
|
122 | 122 | } else { |
123 | - $name = 'sess_' . $name; |
|
123 | + $name = 'sess_'.$name; |
|
124 | 124 | } |
125 | 125 | |
126 | - $filename = $this->config['path'] . $name; |
|
126 | + $filename = $this->config['path'].$name; |
|
127 | 127 | $dir = dirname($filename); |
128 | 128 | |
129 | 129 | if ($auto && !is_dir($dir)) { |
@@ -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\route; |
14 | 14 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $this->parseUrlParams($array[2], $param); |
157 | 157 | } |
158 | 158 | |
159 | - return new CallbackDispatch($request, $this, [$namespace . '\\' . Str::studly($class), $method], $param); |
|
159 | + return new CallbackDispatch($request, $this, [$namespace.'\\'.Str::studly($class), $method], $param); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -177,6 +177,6 @@ discard block |
||
177 | 177 | $this->parseUrlParams($array[1], $param); |
178 | 178 | } |
179 | 179 | |
180 | - return new ControllerDispatch($request, $this, $controller . '/' . $action, $param); |
|
180 | + return new ControllerDispatch($request, $this, $controller.'/'.$action, $param); |
|
181 | 181 | } |
182 | 182 | } |
@@ -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\route; |
14 | 14 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $val = []; |
131 | 131 | |
132 | 132 | foreach (['method', 'rule', 'name', 'route', 'domain', 'pattern', 'option'] as $param) { |
133 | - $call = 'get' . $param; |
|
133 | + $call = 'get'.$param; |
|
134 | 134 | $val[$param] = $item->$call(); |
135 | 135 | } |
136 | 136 |
@@ -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\route; |
14 | 14 |