@@ -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) |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | public function listContents($directory = '', $recursive = false) |
| 189 | 189 | { |
| 190 | 190 | $list = []; |
| 191 | - $result = $this->client()->read($directory, null, [ 'X-List-Limit' => 100, 'X-List-Iter' => null]); |
|
| 191 | + $result = $this->client()->read($directory, null, ['X-List-Limit' => 100, 'X-List-Iter' => null]); |
|
| 192 | 192 | foreach ($result['files'] as $files) { |
| 193 | 193 | $list[] = $this->normalizeFileInfo($files); |
| 194 | 194 | } |
@@ -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 | }); |