Completed
Push — master ( bd74a4...d9ea8c )
by Stephen
05:53
created
src/z1haze/Acl/Models/Permission.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     {
135 135
         parent::boot();
136 136
 
137
-        static::deleting(function ($permission) {
137
+        static::deleting(function($permission) {
138 138
             $permission->users()->detach();
139 139
             $permission->level()->dissociate()->save();
140 140
         });
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6 6
 use z1haze\Acl\Contracts\AclPermissionInterface;
7
-use z1haze\Acl\Exceptions\UserNotFoundException;
8 7
 use z1haze\Acl\Traits\UserAndPermission;
9 8
 
10 9
 class Permission extends Model implements AclPermissionInterface
Please login to merge, or discard this patch.
src/z1haze/Acl/Traits/UserAndLevel.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace z1haze\Acl\Traits;
4 4
 
5 5
 use Illuminate\Support\Collection;
6
+use Illuminate\Support\Facades\Cache;
6 7
 use ReflectionClass;
7 8
 use z1haze\Acl\Exceptions\PermissionNotFoundException;
8
-use Illuminate\Support\Facades\Cache;
9 9
 use z1haze\Acl\Models\Level;
10 10
 use z1haze\Acl\Models\Permission;
11 11
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      * USER & LEVEL
236 236
      * Pull the specific type requested from the cache
237 237
      *
238
-     * @param $type
238
+     * @param string $type
239 239
      * @return \Illuminate\Support\Collection
240 240
      */
241 241
     protected function cachePull($type)
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      * for modifyPermissions
380 380
      *
381 381
      * @param $permissions
382
-     * @param $action
382
+     * @param string $action
383 383
      * @return array
384 384
      * @throws PermissionNotFoundException
385 385
      */
Please login to merge, or discard this patch.
src/z1haze/Acl/Traits/UserAndPermission.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace z1haze\Acl\Traits;
4 4
 
5
-use z1haze\Acl\Exceptions\LevelNotFoundException;
6 5
 use Illuminate\Support\Facades\Cache;
7 6
 use z1haze\Acl\Models\Level;
8 7
 
Please login to merge, or discard this patch.