| @@ -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 | |
| @@ -178,7 +178,7 @@ discard block | ||
| 178 | 178 | public function listContents($directory = '', $recursive = false) | 
| 179 | 179 |      { | 
| 180 | 180 | $list = []; | 
| 181 | - $result = $this->client()->read($directory, null, [ 'X-List-Limit' => 100, 'X-List-Iter' => null]); | |
| 181 | + $result = $this->client()->read($directory, null, ['X-List-Limit' => 100, 'X-List-Iter' => null]); | |
| 182 | 182 |          foreach ($result['files'] as $files) { | 
| 183 | 183 | $list[] = $this->normalizeFileInfo($files); | 
| 184 | 184 | } | 
| @@ -15,10 +15,10 @@ | ||
| 15 | 15 | */ | 
| 16 | 16 | public function boot() | 
| 17 | 17 |      { | 
| 18 | -        Storage::extend('upyun', function ($app, $config) { | |
| 18 | +        Storage::extend('upyun', function($app, $config) { | |
| 19 | 19 | $adapter = new UpyunAdapter( | 
| 20 | 20 | $config['bucket'], $config['operator'], | 
| 21 | - $config['password'],$config['domain'] | |
| 21 | + $config['password'], $config['domain'] | |
| 22 | 22 | ); | 
| 23 | 23 | return new Filesystem($adapter); | 
| 24 | 24 | }); |