Completed
Pull Request — master (#25)
by Adeniyi
02:25
created
src/Helper/Upload.php 1 patch
Braces   +5 added lines, -15 removed lines patch added patch discarded remove patch
@@ -214,25 +214,15 @@
 block discarded – undo
214 214
 
215 215
         if (!$this->ValidateExtension()) {
216 216
             die($this->GetMessage());
217
-        } 
218
-
219
-        else if (!$this->ValidateSize()) {
217
+        } else if (!$this->ValidateSize()) {
220 218
             die($this->GetMessage());
221
-        }
222
-
223
-        else if ($this->ValidateExistance()) {
219
+        } else if ($this->ValidateExistance()) {
224 220
             die($this->GetMessage());
225
-        }
226
-
227
-        else if (!$this->ValidateDirectory()) {
221
+        } else if (!$this->ValidateDirectory()) {
228 222
             die($this->GetMessage());
229
-        }
230
-
231
-        else if ($this->IsImage && !$this->ValidateImage()) {
223
+        } else if ($this->IsImage && !$this->ValidateImage()) {
232 224
             die($this->GetMessage());
233
-        }
234
-
235
-        else {
225
+        } else {
236 226
 
237 227
             $FileName = $this->FileName;
238 228
             $TempFileName = $this->TempFileName;
Please login to merge, or discard this patch.