Passed
Pull Request — master (#7)
by
unknown
01:46
created
src/Controller/Component/UserPermissionsComponent.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,7 @@
 block discarded – undo
2 2
 namespace UserPermissions\Controller\Component;
3 3
 
4 4
 use Cake\Controller\Component;
5
-use Cake\Controller\ComponentRegistry;
6
-use Cake\Controller\Component\FlashComponent;
7
-use Cake\Datasource\ConnectionManager;
8 5
 use Cake\Log\Log;
9
-use Cake\ORM\TableRegistry;
10 6
 use UserPermissions\Exception\MissingHandlerException;
11 7
 
12 8
 class UserPermissionsComponent extends Component {
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.