@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | private Collection $posts; |
30 | 30 | |
31 | 31 | public function __construct( |
32 | - private MultipleRoles|string $role = 'member', |
|
32 | + private MultipleRoles | string $role = 'member', |
|
33 | 33 | ) {} |
34 | 34 | |
35 | 35 | public function getName(): string |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $this->name = $name; |
43 | 43 | } |
44 | 44 | |
45 | - public function getRole(): string|MultipleRoles |
|
45 | + public function getRole(): string | MultipleRoles |
|
46 | 46 | { |
47 | 47 | return $this->role; |
48 | 48 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | return parent::deny($roles, $resources, $privileges, $assert); |
79 | 79 | } |
80 | 80 | |
81 | - private function storePrivileges(null|string|array|ResourceInterface $resource, null|string|array $privileges): void |
|
81 | + private function storePrivileges(null | string | array | ResourceInterface $resource, null | string | array $privileges): void |
|
82 | 82 | { |
83 | 83 | if (!is_array($resource)) { |
84 | 84 | $resource = [$resource]; |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * |
188 | 188 | * @return array{privilege: null|string, allowed: bool, allowIf: string[], denyIf: string[]} |
189 | 189 | */ |
190 | - public function show(null|RoleInterface|string $role, null|ResourceInterface|string $resource, ?string $privilege): array |
|
190 | + public function show(null | RoleInterface | string $role, null | ResourceInterface | string $resource, ?string $privilege): array |
|
191 | 191 | { |
192 | 192 | $allowed = $this->isAllowed($role, $resource, $privilege); |
193 | 193 | sort($this->usedAllowAssertions); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | private readonly ?string $configurationTableName, |
23 | 23 | ) {} |
24 | 24 | |
25 | - public function __invoke(AbstractAsset|string $asset): bool |
|
25 | + public function __invoke(AbstractAsset | string $asset): bool |
|
26 | 26 | { |
27 | 27 | if (!$this->enabled) { |
28 | 28 | return true; |