@@ -277,13 +277,13 @@ discard block |
||
| 277 | 277 | */ |
| 278 | 278 | protected function cacheGetAllPermissions() |
| 279 | 279 | { |
| 280 | - if(is_a($this, config('laravel-acl.level'), true)) { |
|
| 280 | + if (is_a($this, config('laravel-acl.level'), true)) { |
|
| 281 | 281 | $rank = $this->rank; |
| 282 | 282 | } else { |
| 283 | 283 | $rank = $this->level ? $this->level->rank : null; |
| 284 | 284 | } |
| 285 | 285 | |
| 286 | - if(!$rank) { |
|
| 286 | + if (!$rank) { |
|
| 287 | 287 | return $this->permissions; |
| 288 | 288 | } |
| 289 | 289 | |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | |
| 372 | 372 | $permissionObjects = $this->buildPermissionsArray($permissions, $action); |
| 373 | 373 | |
| 374 | - switch($action) { |
|
| 374 | + switch ($action) { |
|
| 375 | 375 | case 'add': |
| 376 | 376 | // Add and negate call the same method |
| 377 | 377 | case 'negate': |