Passed
Pull Request — master (#7)
by
unknown
01:46
created
src/Controller/Component/UserPermissionsComponent.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -189,6 +189,9 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,8 +222,7 @@
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.