Passed
Push — main ( 60a874...8b25f3 )
by Dimitri
03:14 queued 12s
created
src/Initializer/bootstrap.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,12 +13,10 @@  discard block
 block discarded – undo
13 13
     if (is_dir($paths['app'])) {
14 14
         if (($_temp = realpath($paths['app'])) !== false) {
15 15
             $paths['app'] = $_temp;
16
-        }
17
-        else {
16
+        } else {
18 17
             $paths['app'] = strtr(rtrim($paths['app'], '/\\'), '/\\', DS.DS);
19 18
         }
20
-    }
21
-    else {
19
+    } else {
22 20
         header('HTTP/1.1 503 Service Unavailable.', true, 503);
23 21
         echo 'Your application folder path does not appear to be set correctly. ';
24 22
         echo 'Please open the following file and correct this: "' . $paths_config_file . '"';
@@ -29,15 +27,12 @@  discard block
 block discarded – undo
29 27
     if (is_dir($paths['storage'])) {
30 28
         if (($_temp = realpath($paths['storage'])) !== false) {
31 29
             $paths['storage'] = $_temp;
32
-        }
33
-        else {
30
+        } else {
34 31
             $paths['storage'] = strtr(rtrim($paths['storage'], '/\\'), '/\\', DS.DS);
35 32
         }
36
-    }
37
-    elseif (is_dir($paths['app'].$paths['storage'].DS)) {
33
+    } elseif (is_dir($paths['app'].$paths['storage'].DS)) {
38 34
         $paths['storage'] = $paths['app'].strtr(trim($paths['storage'], '/\\'), '/\\', DS.DS);
39
-    }
40
-    else {
35
+    } else {
41 36
         header('HTTP/1.1 503 Service Unavailable.', true, 503);
42 37
         echo 'Your storage folder path does not appear to be set correctly. ';
43 38
         echo 'Please open the following file and correct this: "' . $paths_config_file . '"';
Please login to merge, or discard this patch.