@@ -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; |
14 | 14 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | foreach ($methods as $method) { |
222 | 222 | $name = $method->getName(); |
223 | 223 | if (0 === strpos($name, 'on')) { |
224 | - $this->listen($prefix . substr($name, 2), [$observer, $name]); |
|
224 | + $this->listen($prefix.substr($name, 2), [$observer, $name]); |
|
225 | 225 | } |
226 | 226 | } |
227 | 227 |
@@ -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\filesystem; |
14 | 14 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | public function putFileAs(string $path, File $file, string $name, array $options = []) |
116 | 116 | { |
117 | 117 | $stream = fopen($file->getRealPath(), 'r'); |
118 | - $path = trim($path . '/' . $name, '/'); |
|
118 | + $path = trim($path.'/'.$name, '/'); |
|
119 | 119 | |
120 | 120 | $result = $this->putStream($path, $stream, $options); |
121 | 121 |