@@ -242,7 +242,7 @@ |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | /** |
| 245 | - * @param $path |
|
| 245 | + * @param string $path |
|
| 246 | 246 | * @return string |
| 247 | 247 | */ |
| 248 | 248 | public function getUrl($path) |
@@ -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'], |
@@ -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); |