Test Failed
Push — develop ( 02f40b...c00ab5 )
by Daniel
07:16
created
src/Uploader/FileUploader.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 
43 43
         $ext = $file->guessExtension();
44 44
         $basename = pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME);
45
-        $filename = $basename.'.'.$ext;
46
-        $i=0;
45
+        $filename = $basename . '.' . $ext;
46
+        $i = 0;
47 47
         while ($fs->exists($this->getRealPath($moveToDir, $filename))) {
48 48
             $i++;
49
-            $filename = $basename.".$i.$ext";
49
+            $filename = $basename . ".$i.$ext";
50 50
         }
51 51
         return $filename;
52 52
     }
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
 
80 80
         // Validation passed, remove old file first (in case we don't have permission to do it)
81 81
         if ($currentFile) {
82
-            try{
82
+            try {
83 83
                 $this->unlinkFile(new File($currentFile));
84
-            }catch(FileNotFoundException $e){}
84
+            } catch (FileNotFoundException $e) {}
85 85
         }
86 86
 
87 87
         // Old file removed, let's update!
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         if ($currentFile) {
82 82
             try{
83 83
                 $this->unlinkFile(new File($currentFile));
84
-            }catch(FileNotFoundException $e){}
84
+            } catch(FileNotFoundException $e){}
85 85
         }
86 86
 
87 87
         // Old file removed, let's update!
Please login to merge, or discard this patch.