Completed
Pull Request — master (#187)
by Freek
03:45 queued 01:50
created
src/Models/Permission.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Spatie\Permission\Models;
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6
-use Spatie\Permission\Traits\RefreshesPermissionCache;
7
-use Spatie\Permission\Exceptions\PermissionDoesNotExist;
8 6
 use Spatie\Permission\Contracts\Permission as PermissionContract;
7
+use Spatie\Permission\Exceptions\PermissionDoesNotExist;
8
+use Spatie\Permission\Traits\RefreshesPermissionCache;
9 9
 
10 10
 class Permission extends Model implements PermissionContract
11 11
 {
Please login to merge, or discard this patch.
src/Models/Role.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Spatie\Permission\Models;
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6
-use Spatie\Permission\Traits\HasPermissions;
7
-use Spatie\Permission\Exceptions\RoleDoesNotExist;
8 6
 use Spatie\Permission\Contracts\Role as RoleContract;
7
+use Spatie\Permission\Exceptions\RoleDoesNotExist;
8
+use Spatie\Permission\Traits\HasPermissions;
9 9
 use Spatie\Permission\Traits\RefreshesPermissionCache;
10 10
 
11 11
 class Role extends Model implements RoleContract
Please login to merge, or discard this patch.
src/PermissionServiceProvider.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\ServiceProvider;
6 6
 use Illuminate\View\Compilers\BladeCompiler;
7
-use Spatie\Permission\Contracts\Role as RoleContract;
8 7
 use Spatie\Permission\Contracts\Permission as PermissionContract;
8
+use Spatie\Permission\Contracts\Role as RoleContract;
9 9
 
10 10
 class PermissionServiceProvider extends ServiceProvider
11 11
 {
Please login to merge, or discard this patch.
src/Traits/HasRoles.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Spatie\Permission\Traits;
4 4
 
5 5
 use Illuminate\Support\Collection;
6
-use Spatie\Permission\Contracts\Role;
7 6
 use Spatie\Permission\Contracts\Permission;
7
+use Spatie\Permission\Contracts\Role;
8 8
 
9 9
 trait HasRoles
10 10
 {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @param array|string|\Spatie\Permission\Models\Role ...$roles
78 78
      *
79
-     * @return \Spatie\Permission\Contracts\Role
79
+     * @return HasRoles
80 80
      */
81 81
     public function assignRole(...$roles)
82 82
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Determine if the user may perform the given permission.
189 189
      *
190
-     * @param string|Permission $permission
190
+     * @param Permission $permission
191 191
      *
192 192
      * @return bool
193 193
      */
Please login to merge, or discard this patch.