Test Failed
Pull Request — master (#6)
by
unknown
01:37
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   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,9 @@
 block discarded – undo
179 179
     private function searchForApplyViewRules($key, $value)
180 180
     {
181 181
     	if($key == $this->action) {
182
-			if(!$this->checkForHandler($this->controller, $value)) return;
182
+			if(!$this->checkForHandler($this->controller, $value)) {
183
+				return;
184
+			}
183 185
 			
184 186
 			if(!$this->controller->$value()){
185 187
 				$this->redirectIfIsSet();
Please login to merge, or discard this patch.