@@ -134,7 +134,7 @@ |
||
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 | }); |
@@ -4,7 +4,6 @@ |
||
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 |
@@ -3,9 +3,9 @@ |
||
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 |
@@ -235,7 +235,7 @@ discard block |
||
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 |
||
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 | */ |
@@ -2,7 +2,6 @@ |
||
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 |