Completed
Push — master ( 96640c...b0c8b3 )
by Andrii
02:03
created
src/SetterTrait.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Set child.
59 59
      * @param string|Item $parent
60
-     * @param string|Item $child
60
+     * @param Item $child
61 61
      * @return bool
62 62
      */
63 63
     public function setChild($parent, $child)
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
         return $this->assign($item, $userId);
103 103
     }
104 104
 
105
+    /**
106
+     * @param string $name
107
+     */
105 108
     protected function findItem($name, $description = null)
106 109
     {
107 110
         $item = $this->getItem($name);
Please login to merge, or discard this patch.
tests/unit/CheckAccessTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         }
29 29
     }
30 30
 
31
+    /**
32
+     * @param string $userId
33
+     */
31 34
     public function assertAccesses($userId, array $allowedPermissions)
32 35
     {
33 36
         $allPermissions = array_keys($this->auth->getPermissions());
@@ -42,6 +45,9 @@  discard block
 block discarded – undo
42 45
         $this->assertAccess($userId, false, $deniedPermissions);
43 46
     }
44 47
 
48
+    /**
49
+     * @param boolean $isAllowed
50
+     */
45 51
     public function assertAccess($userId, $isAllowed, array $permissions)
46 52
     {
47 53
         foreach ($permissions as $permission) {
Please login to merge, or discard this patch.