@@ -189,6 +189,9 @@ |
||
189 | 189 | } |
190 | 190 | } |
191 | 191 | |
192 | + /** |
|
193 | + * @param string $controller |
|
194 | + */ |
|
192 | 195 | private function checkForHandler($controller, $handler) |
193 | 196 | { |
194 | 197 | if(!method_exists($controller, $handler)) { |
@@ -222,8 +222,7 @@ |
||
222 | 222 | |
223 | 223 | if(method_exists($this->controller, "redirect")) { |
224 | 224 | $this->controller->redirect($this->redirect); |
225 | - } |
|
226 | - else { |
|
225 | + } else { |
|
227 | 226 | header("Location: " . $this->redirect); |
228 | 227 | exit; |
229 | 228 | } |