Passed
Branch master (f8decb)
by Stone
02:25
created
Core/Router.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,11 +132,11 @@
 block discarded – undo
132 132
             $methodToRun = $this->currentMethod;
133 133
             if(method_exists($controllerInstantiated, $methodToRun)){
134 134
                 call_user_func_array([$controllerInstantiated, $methodToRun], $this->currentParams);
135
-            }else{
135
+            } else{
136 136
                 throw new \Exception("ERROR - Method <i>$methodToRun</i>() doesn't exist or is inaccessible");
137 137
             }
138 138
 
139
-        }else{
139
+        } else{
140 140
             throw new \Exception("Class <i>$controllerWithNamespace</i> doesn't exist", 404);
141 141
         }
142 142
    }
Please login to merge, or discard this patch.