Passed
Push — master ( 698b78...6b217e )
by Alessandro
08:24 queued 05:16
created
src/Controller/Component/UserPermissionsComponent.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,6 @@
 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\Datasource\ConnectionManager;
7
-use Cake\ORM\TableRegistry;
8
-use Cake\Controller\Component\FlashComponent;
9 5
 
10 6
 class UserPermissionsComponent extends Component {
11 7
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@  discard block
 block discarded – undo
47 47
     /**
48 48
     * Initialization to get controller variable
49 49
     *
50
-    * @param string $event The event to use.
51 50
     */
52 51
     public function initialize(array $config)
53 52
     {
@@ -69,7 +68,7 @@  discard block
 block discarded – undo
69 68
     * Initialization to get controller variable
70 69
     *
71 70
     * @param array $rules Array of rules for permissions.
72
-    * @return string '0' if user / group doesn't have permission, 1 if has permission
71
+    * @return boolean '0' if user / group doesn't have permission, 1 if has permission
73 72
     */
74 73
     public function allow ($rules) {
75 74
     	$this->setUserValues();
Please login to merge, or discard this patch.