@@ -400,7 +400,7 @@ |
||
400 | 400 | file_put_contents($temporaryPath, $content); |
401 | 401 | |
402 | 402 | // The file is automatically removed when closed, or when the script ends. |
403 | - register_shutdown_function(function () use ($temporaryPath) { |
|
403 | + register_shutdown_function(function() use ($temporaryPath) { |
|
404 | 404 | unlink($temporaryPath); |
405 | 405 | }); |
406 | 406 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | * @param \DateTimeInterface $expiration |
71 | 71 | * @param array $options |
72 | 72 | * |
73 | - * @return string|bool |
|
73 | + * @return string|false |
|
74 | 74 | */ |
75 | 75 | public function getTemporaryUrl($path, DateTimeInterface $expiration, array $options = []) |
76 | 76 | { |
@@ -27,16 +27,16 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | $this->app->make('filesystem') |
30 | - ->extend('cosv4', function ($app, $config) { |
|
31 | - $cosApi = new Api($config); |
|
32 | - $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
|
30 | + ->extend('cosv4', function ($app, $config) { |
|
31 | + $cosApi = new Api($config); |
|
32 | + $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
|
33 | 33 | |
34 | - $flysystem->addPlugin(new PutRemoteFile()); |
|
35 | - $flysystem->addPlugin(new PutRemoteFileAs()); |
|
36 | - $flysystem->addPlugin(new GetUrl()); |
|
34 | + $flysystem->addPlugin(new PutRemoteFile()); |
|
35 | + $flysystem->addPlugin(new PutRemoteFileAs()); |
|
36 | + $flysystem->addPlugin(new GetUrl()); |
|
37 | 37 | |
38 | - return $flysystem; |
|
39 | - }); |
|
38 | + return $flysystem; |
|
39 | + }); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -27,7 +27,7 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | $this->app->make('filesystem') |
30 | - ->extend('cosv4', function ($app, $config) { |
|
30 | + ->extend('cosv4', function($app, $config) { |
|
31 | 31 | $cosApi = new Api($config); |
32 | 32 | $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
33 | 33 |