Completed
Push — master ( becb2b...3f1ad0 )
by Sergi Tur
07:46
created
src/Console/PublishAdminLTE.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.