@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | return $url; |
111 | 111 | } |
112 | 112 | return []; |
113 | - } |
|
113 | + } |
|
114 | 114 | |
115 | 115 | |
116 | 116 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | }else{ |
140 | 140 | throw new \Exception("Class <i>$controllerWithNamespace</i> doesn't exist", 404); |
141 | 141 | } |
142 | - } |
|
142 | + } |
|
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Convert the string with hyphens to StudlyCaps, |
@@ -132,11 +132,11 @@ |
||
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 | } |