@@ -16,10 +16,10 @@ |
||
16 | 16 | */ |
17 | 17 | public function boot() |
18 | 18 | { |
19 | - Storage::extend('upyun', function ($app, $config) { |
|
19 | + Storage::extend('upyun', function($app, $config) { |
|
20 | 20 | $adapter = new UpyunAdapter( |
21 | 21 | $config['bucket'], $config['operator'], |
22 | - $config['password'],$config['domain'] |
|
22 | + $config['password'], $config['domain'] |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $filesystem = new Filesystem($adapter); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function rename($path, $newpath) |
99 | 99 | { |
100 | - $this->copy($path,$newpath); |
|
100 | + $this->copy($path, $newpath); |
|
101 | 101 | return $this->delete($path); |
102 | 102 | } |
103 | 103 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | { |
180 | 180 | $list = []; |
181 | 181 | |
182 | - $result = $this->client()->read($directory, null, [ 'X-List-Limit' => 100, 'X-List-Iter' => null]); |
|
182 | + $result = $this->client()->read($directory, null, ['X-List-Limit' => 100, 'X-List-Iter' => null]); |
|
183 | 183 | |
184 | 184 | foreach ($result['files'] as $files) { |
185 | 185 | $list[] = $this->normalizeFileInfo($files, $directory); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | protected function normalizeFileInfo(array $stats, string $directory) |
275 | 275 | { |
276 | - $filePath = ltrim($directory . '/' . $stats['name'], '/'); |
|
276 | + $filePath = ltrim($directory.'/'.$stats['name'], '/'); |
|
277 | 277 | |
278 | 278 | return [ |
279 | 279 | 'type' => $this->getType($filePath)['type'], |