Completed
Push — master ( 8ec89a...5db323 )
by Arjay
14:29
created
src/Traits/HasRole.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * Attach a role to user using slug.
104 104
      *
105 105
      * @param $slug
106
-     * @return bool
106
+     * @return null|false
107 107
      */
108 108
     public function attachRoleBySlug($slug)
109 109
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * Attach a role to user
117 117
      *
118 118
      * @param Role $role
119
-     * @return boolean
119
+     * @return null|false
120 120
      */
121 121
     public function attachRole(Role $role)
122 122
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * Assigns the given role to the user.
128 128
      *
129 129
      * @param int $roleId
130
-     * @return bool
130
+     * @return null|false
131 131
      */
132 132
     public function assignRole($roleId = null)
133 133
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      * Revokes the given role from the user using slug.
172 172
      *
173 173
      * @param string $slug
174
-     * @return bool
174
+     * @return integer
175 175
      */
176 176
     public function revokeRoleBySlug($slug)
177 177
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * Revokes the given role from the user.
185 185
      *
186 186
      * @param mixed $role
187
-     * @return bool
187
+     * @return integer
188 188
      */
189 189
     public function revokeRole($role = "")
190 190
     {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * Revokes all roles from the user.
207 207
      *
208
-     * @return bool
208
+     * @return integer
209 209
      */
210 210
     public function revokeAllRoles()
211 211
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\Acl\Traits;
4 4
 
5
-use Yajra\Acl\Models\Role;
6 5
 use Illuminate\Support\Str;
6
+use Yajra\Acl\Models\Role;
7 7
 
8 8
 trait HasRole
9 9
 {
Please login to merge, or discard this patch.