Completed
Push — master ( 37f317...606373 )
by Chris
01:34
created
src/Traits/HasPermissions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     /**
188 188
      * Determine if the model has the given permission.
189 189
      *
190
-     * @param string|int|\Spatie\Permission\Contracts\Permission $permission
190
+     * @param Permission $permission
191 191
      *
192 192
      * @return bool
193 193
      */
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Permission\Traits;
4 4
 
5
-use Spatie\Permission\Guard;
6
-use Illuminate\Support\Collection;
7 5
 use Illuminate\Database\Eloquent\Builder;
8
-use Spatie\Permission\PermissionRegistrar;
6
+use Illuminate\Database\Eloquent\Relations\MorphToMany;
7
+use Illuminate\Support\Collection;
9 8
 use Spatie\Permission\Contracts\Permission;
10 9
 use Spatie\Permission\Exceptions\GuardDoesNotMatch;
11
-use Illuminate\Database\Eloquent\Relations\MorphToMany;
12 10
 use Spatie\Permission\Exceptions\PermissionDoesNotExist;
11
+use Spatie\Permission\Guard;
12
+use Spatie\Permission\PermissionRegistrar;
13 13
 
14 14
 trait HasPermissions
15 15
 {
Please login to merge, or discard this patch.