@@ -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 | } |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | protected function publishFile($from, $to) |
185 | 185 | { |
186 | - if ($this->files->exists($to) && ! $this->option('force')) { |
|
186 | + if ($this->files->exists($to) && !$this->option('force')) { |
|
187 | 187 | return; |
188 | 188 | } |
189 | 189 | $this->createParentDirectory(dirname($to)); |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | 'to' => new Flysystem(new LocalAdapter($to)), |
206 | 206 | ]); |
207 | 207 | foreach ($manager->listContents('from://', true) as $file) { |
208 | - if ($file['type'] === 'file' && (! $manager->has('to://'.$file['path']) || $this->option('force'))) { |
|
209 | - $manager->put('to://'.$file['path'], $manager->read('from://'.$file['path'])); |
|
208 | + if ($file[ 'type' ] === 'file' && (!$manager->has('to://'.$file[ 'path' ]) || $this->option('force'))) { |
|
209 | + $manager->put('to://'.$file[ 'path' ], $manager->read('from://'.$file[ 'path' ])); |
|
210 | 210 | } |
211 | 211 | } |
212 | 212 | $this->status($from, $to, 'Directory'); |