@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @param string $path Path to the existing file. |
180 | 180 | * @param string $newpath The new path of the file. |
181 | - * @return bool True on success, false on failure. |
|
181 | + * @return string|false True on success, false on failure. |
|
182 | 182 | */ |
183 | 183 | public function rename($path, $newpath) |
184 | 184 | { |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * Read and delete a file. |
274 | 274 | * |
275 | 275 | * @param string $path The path to the file. |
276 | - * @return string|false The file contents, or false on failure. |
|
276 | + * @return string The file contents, or false on failure. |
|
277 | 277 | */ |
278 | 278 | public function readAndDelete($path) |
279 | 279 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function local(string $name, string $path) |
66 | 66 | { |
67 | - $this->disk($name, function () use ($path) { |
|
67 | + $this->disk($name, function() use ($path) { |
|
68 | 68 | return new Local($path); |
69 | 69 | }); |
70 | 70 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function ftp(array $settings) |
79 | 79 | { |
80 | - $this->disk('ftp', function () use ($settings) { |
|
80 | + $this->disk('ftp', function() use ($settings) { |
|
81 | 81 | return new Ftp($settings); |
82 | 82 | }); |
83 | 83 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function aws(string $bucket, array $settings) |
92 | 92 | { |
93 | - $this->disk('ftp', function () use ($bucket, $settings) { |
|
93 | + $this->disk('ftp', function() use ($bucket, $settings) { |
|
94 | 94 | |
95 | 95 | $client = S3Client::factory($settings); |
96 | 96 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function dropbox(string $accessToken, string $appSecret) |
109 | 109 | { |
110 | - $this->disk('dropbox', function () use ($accessToken, $appSecret) { |
|
110 | + $this->disk('dropbox', function() use ($accessToken, $appSecret) { |
|
111 | 111 | return new DropboxAdapter( |
112 | 112 | new Client($accessToken, $appSecret) |
113 | 113 | ); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function getDefinitions() |
40 | 40 | { |
41 | 41 | return [ |
42 | - FilesystemInterface::class => function () { |
|
42 | + FilesystemInterface::class => function() { |
|
43 | 43 | |
44 | 44 | $manager = new MountManager(); |
45 | 45 |