@@ -25,7 +25,7 @@ |
||
25 | 25 | __DIR__.'/filesystems.php' => config_path('filesystems.php'), |
26 | 26 | ]); |
27 | 27 | |
28 | - Storage::extend('cosv3', function ($app, $config) { |
|
28 | + Storage::extend('cosv3', function($app, $config) { |
|
29 | 29 | return new Filesystem(new Adapter($config)); |
30 | 30 | }); |
31 | 31 |
@@ -800,7 +800,7 @@ |
||
800 | 800 | * |
801 | 801 | * @param string $path 待编码路径 |
802 | 802 | * |
803 | - * @return mixed |
|
803 | + * @return string |
|
804 | 804 | */ |
805 | 805 | private static function cosUrlEncode($path) |
806 | 806 | { |
@@ -396,8 +396,8 @@ discard block |
||
396 | 396 | } |
397 | 397 | |
398 | 398 | /** |
399 | - * Creates a temporary file |
|
400 | - * |
|
399 | + * Creates a temporary file |
|
400 | + * |
|
401 | 401 | * @param string $content |
402 | 402 | * |
403 | 403 | * @return bool|string |
@@ -410,10 +410,10 @@ discard block |
||
410 | 410 | |
411 | 411 | file_put_contents($temporaryPath, $content); |
412 | 412 | |
413 | - // The file is automatically removed when closed, or when the script ends. |
|
414 | - register_shutdown_function(function() use($temporaryPath) { |
|
415 | - unlink($temporaryPath); |
|
416 | - }); |
|
413 | + // The file is automatically removed when closed, or when the script ends. |
|
414 | + register_shutdown_function(function() use($temporaryPath) { |
|
415 | + unlink($temporaryPath); |
|
416 | + }); |
|
417 | 417 | |
418 | 418 | return $temporaryPath; |
419 | 419 | } |