@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | protected function createParentDirectory($directory) |
169 | 169 | { |
170 | - if (! $this->files->isDirectory($directory)) { |
|
170 | + if (!$this->files->isDirectory($directory)) { |
|
171 | 171 | $this->files->makeDirectory($directory, 0755, true); |
172 | 172 | } |
173 | 173 | } |
@@ -200,8 +200,8 @@ discard block |
||
200 | 200 | 'to' => new Flysystem(new LocalAdapter($to)), |
201 | 201 | ]); |
202 | 202 | foreach ($manager->listContents('from://', true) as $file) { |
203 | - if ($file['type'] === 'file' && (! $manager->has('to://'.$file['path']) )) { |
|
204 | - $manager->put('to://'.$file['path'], $manager->read('from://'.$file['path'])); |
|
203 | + if ($file[ 'type' ] === 'file' && (!$manager->has('to://'.$file[ 'path' ]))) { |
|
204 | + $manager->put('to://'.$file[ 'path' ], $manager->read('from://'.$file[ 'path' ])); |
|
205 | 205 | } |
206 | 206 | } |
207 | 207 | $this->status($from, $to, 'Directory'); |