@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | final class PhpEnumType extends \GraphQL\Type\Definition\PhpEnumType |
14 | 14 | { |
15 | - protected function extractDescription(ReflectionClassConstant|ReflectionClass $reflection): ?string |
|
15 | + protected function extractDescription(ReflectionClassConstant | ReflectionClass $reflection): ?string |
|
16 | 16 | { |
17 | 17 | if ($reflection instanceof ReflectionClassConstant) { |
18 | 18 | $value = $reflection->getValue(); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | return $sql; |
26 | 26 | } |
27 | 27 | |
28 | - public function convertToPHPValue(mixed $value, AbstractPlatform $platform): null|string|BackedEnum |
|
28 | + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): null | string | BackedEnum |
|
29 | 29 | { |
30 | 30 | if ($value === null || '' === $value) { |
31 | 31 | return null; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | parent::__construct($statement); |
24 | 24 | } |
25 | 25 | |
26 | - public function bindValue(int|string $param, mixed $value, ParameterType $type): void |
|
26 | + public function bindValue(int | string $param, mixed $value, ParameterType $type): void |
|
27 | 27 | { |
28 | 28 | $this->params[$param] = $value; |
29 | 29 |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * This should be the main method to do all ACL checks. |
110 | 110 | */ |
111 | - public function isCurrentUserAllowed(Model|string $modelOrResource, string $privilege): bool |
|
111 | + public function isCurrentUserAllowed(Model | string $modelOrResource, string $privilege): bool |
|
112 | 112 | { |
113 | 113 | $resource = is_string($modelOrResource) ? $modelOrResource : new ModelResource(DefaultProxyClassNameResolver::getClass($modelOrResource), $modelOrResource); |
114 | 114 | $role = $this->getCurrentRole(); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return false; |
135 | 135 | } |
136 | 136 | |
137 | - private function getCurrentRole(): MultipleRoles|string |
|
137 | + private function getCurrentRole(): MultipleRoles | string |
|
138 | 138 | { |
139 | 139 | $user = CurrentUser::get(); |
140 | 140 | if (!$user) { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | return $user->getRole(); |
145 | 145 | } |
146 | 146 | |
147 | - private function buildMessage(ModelResource|string $resource, ?string $privilege, MultipleRoles|string $role, bool $isAllowed): ?string |
|
147 | + private function buildMessage(ModelResource | string $resource, ?string $privilege, MultipleRoles | string $role, bool $isAllowed): ?string |
|
148 | 148 | { |
149 | 149 | if ($isAllowed) { |
150 | 150 | return null; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @return array<array{resource:string, privileges: array<int, array{privilege:null|string, allowed: bool, allowIf: string[], denyIf: string[]}>}> |
187 | 187 | */ |
188 | - public function show(MultipleRoles|string $role, bool $useTranslations = true): array |
|
188 | + public function show(MultipleRoles | string $role, bool $useTranslations = true): array |
|
189 | 189 | { |
190 | 190 | $result = []; |
191 | 191 | /** @var string[] $resources */ |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Creates a new QueryBuilder instance that is prepopulated for this entity name. |
23 | 23 | */ |
24 | - abstract public function createQueryBuilder(string $alias, string|null $indexBy = null): QueryBuilder; |
|
24 | + abstract public function createQueryBuilder(string $alias, string | null $indexBy = null): QueryBuilder; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * This should NOT be called directly, instead use `_log()` to log stuff. |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * Creates a new QueryBuilder instance that is prepopulated for this entity name. |
14 | 14 | */ |
15 | - abstract public function createQueryBuilder(string $alias, string|null $indexBy = null): QueryBuilder; |
|
15 | + abstract public function createQueryBuilder(string $alias, string | null $indexBy = null): QueryBuilder; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @return Message[] |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * |
36 | 36 | * @param null|array{host?: string, port?: int, user?: ?string, password?: ?string, connection_config?: array{username?: ?string, password?: ?string}}|string $configSmtp |
37 | 37 | */ |
38 | - public static function dsn(null|array|string $configSmtp): string |
|
38 | + public static function dsn(null | array | string $configSmtp): string |
|
39 | 39 | { |
40 | 40 | if (!$configSmtp) { |
41 | 41 | return 'null://null'; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | return parent::query($sql); |
34 | 34 | } |
35 | 35 | |
36 | - public function exec(string $sql): int|string |
|
36 | + public function exec(string $sql): int | string |
|
37 | 37 | { |
38 | 38 | _log()->debug($sql); |
39 | 39 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * @dataProvider providerDsn |
14 | 14 | */ |
15 | - public function testDsn(null|array|string $input, string $expected): void |
|
15 | + public function testDsn(null | array | string $input, string $expected): void |
|
16 | 16 | { |
17 | 17 | $actual = TransportFactory::dsn($input); |
18 | 18 |