@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | return ClassUtils::getRealClass($resource::class); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - private function getCurrentRole(): MultipleRoles|string |
|
| 144 | + private function getCurrentRole(): MultipleRoles | string |
|
| 145 | 145 | { |
| 146 | 146 | $user = CurrentUser::get(); |
| 147 | 147 | if (!$user) { |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | return $user->getRole(); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - private function buildMessage(ModelResource $resource, ?string $privilege, MultipleRoles|string $role, bool $isAllowed): ?string |
|
| 154 | + private function buildMessage(ModelResource $resource, ?string $privilege, MultipleRoles | string $role, bool $isAllowed): ?string |
|
| 155 | 155 | { |
| 156 | 156 | if ($isAllowed) { |
| 157 | 157 | return null; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * @return array<array{resource:string, privileges: array<int, array{privilege:null|string, allowed: bool, allowIf: string[], denyIf: string[]}>}> |
| 189 | 189 | */ |
| 190 | - public function show(MultipleRoles|string $role, bool $useTranslations = true): array |
|
| 190 | + public function show(MultipleRoles | string $role, bool $useTranslations = true): array |
|
| 191 | 191 | { |
| 192 | 192 | $result = []; |
| 193 | 193 | /** @var string[] $resources */ |