Passed
Pull Request — Showing-Posts (#50)
by Stone
03:32 queued 01:54
created
App/Controllers/Ajax/ImageUpload.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
                 return;
56 56
             }
57 57
 
58
-            $filetowrite = $this->imageFolder . $tempFile['name'];
58
+            $filetowrite = $this->imageFolder.$tempFile['name'];
59 59
             move_uploaded_file($tempFile['tmp_name'], $filetowrite);
60 60
 
61 61
             // Respond to the successful upload with JSON.
62 62
             echo json_encode(array('location' => $filetowrite));
63
-        } else {
63
+        }else {
64 64
             // Notify editor that the upload failed
65 65
             header("HTTP/1.1 500 Server Error");
66 66
         }
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
                 return;
87 87
             }
88 88
 
89
-            $filetowrite = $this->configFolder . $tempFile['name'];
89
+            $filetowrite = $this->configFolder.$tempFile['name'];
90 90
             move_uploaded_file($tempFile['tmp_name'], $filetowrite);
91 91
 
92 92
             // Respond to the successful upload with JSON.
93 93
             echo json_encode(array('location' => $filetowrite));
94
-        } else {
94
+        }else {
95 95
             // Notify editor that the upload failed
96 96
             echo json_encode(array('error' => 'Upload failed'));
97 97
         }
Please login to merge, or discard this patch.