@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $this->error("Can't locate path: <{$fileSrc}>"); |
| 144 | 144 | } |
| 145 | 145 | copy($fileSrc, $fileDst); |
| 146 | - $this->info('Copied file ' . $fileSrc . ' to ' . $fileDst ); |
|
| 146 | + $this->info('Copied file '.$fileSrc.' to '.$fileDst); |
|
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | 149 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | protected function createParentDirectory($directory) |
| 171 | 171 | { |
| 172 | - if (! $this->files->isDirectory($directory)) { |
|
| 172 | + if (!$this->files->isDirectory($directory)) { |
|
| 173 | 173 | $this->files->makeDirectory($directory, 0755, true); |
| 174 | 174 | } |
| 175 | 175 | } |
@@ -202,8 +202,8 @@ discard block |
||
| 202 | 202 | 'to' => new Flysystem(new LocalAdapter($to)), |
| 203 | 203 | ]); |
| 204 | 204 | foreach ($manager->listContents('from://', true) as $file) { |
| 205 | - if ($file['type'] === 'file' && (! $manager->has('to://'.$file['path']) )) { |
|
| 206 | - $manager->put('to://'.$file['path'], $manager->read('from://'.$file['path'])); |
|
| 205 | + if ($file[ 'type' ] === 'file' && (!$manager->has('to://'.$file[ 'path' ]))) { |
|
| 206 | + $manager->put('to://'.$file[ 'path' ], $manager->read('from://'.$file[ 'path' ])); |
|
| 207 | 207 | } |
| 208 | 208 | } |
| 209 | 209 | $this->status($from, $to, 'Directory'); |