Completed
Pull Request — master (#926)
by
unknown
01:38
created
src/PermissionRegistrar.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Permission;
4 4
 
5
-use Illuminate\Support\Collection;
6
-use Spatie\Permission\Contracts\Role;
5
+use Illuminate\Contracts\Auth\Access\Authorizable;
7 6
 use Illuminate\Contracts\Auth\Access\Gate;
8 7
 use Illuminate\Contracts\Cache\Repository;
8
+use Illuminate\Support\Collection;
9 9
 use Spatie\Permission\Contracts\Permission;
10
-use Illuminate\Contracts\Auth\Access\Authorizable;
10
+use Spatie\Permission\Contracts\Role;
11 11
 use Spatie\Permission\Exceptions\PermissionDoesNotExist;
12 12
 
13 13
 class PermissionRegistrar
Please login to merge, or discard this patch.
src/Traits/HasPermissions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param null|string|int|\Spatie\Permission\Contracts\Permission $permission
214 214
      *
215
-     * @return array
215
+     * @return string[]
216 216
      */
217 217
     protected function getCacheTags($permission = null)
218 218
     {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      *
244 244
      * @param string|int|\Spatie\Permission\Contracts\Permission $permission
245 245
      *
246
-     * @return mixed
246
+     * @return string
247 247
      */
248 248
     protected function getPermissionCacheString($permission)
249 249
     {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     /**
316 316
      * Determine if the model has the given permission.
317 317
      *
318
-     * @param string|int|\Spatie\Permission\Contracts\Permission $permission
318
+     * @param Permission $permission
319 319
      *
320 320
      * @return bool
321 321
      */
Please login to merge, or discard this patch.