@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Security/UserTypeIdentification.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/ResponseHandler.php |
5 | 5 | * |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | ); |
101 | 101 | |
102 | 102 | $groups = array_merge([$entityName], $populate); |
103 | - $filter = static fn (string $groupName): bool => strncmp($groupName, 'Set.', 4) === 0; |
|
103 | + $filter = static fn(string $groupName): bool => strncmp($groupName, 'Set.', 4) === 0; |
|
104 | 104 | |
105 | 105 | if (array_key_exists('populateOnly', $request->query->all()) |
106 | 106 | || count(array_filter($groups, $filter)) > 0 |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | if ($populateAll && count($populate) === 0) { |
201 | 201 | $associations = $restResource->getAssociations(); |
202 | 202 | $populate = array_map( |
203 | - static fn (string $assocName): string => $entityName . '.' . $assocName, |
|
203 | + static fn(string $assocName): string => $entityName . '.' . $assocName, |
|
204 | 204 | $associations |
205 | 205 | ); |
206 | 206 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/UuidHelper.php |
5 | 5 | * |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | } catch (InvalidUuidStringException $exception) { |
60 | 60 | // ok, so now we know that value isn't uuid |
61 | - (static fn (Throwable $exception): Throwable => $exception)($exception); |
|
61 | + (static fn(Throwable $exception): Throwable => $exception)($exception); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return $output; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/RepositoryHelper.php |
5 | 5 | * |
@@ -368,11 +368,11 @@ discard block |
||
368 | 368 | try { |
369 | 369 | $value = array_map([UuidHelper::class, 'getBytes'], $value); |
370 | 370 | } catch (InvalidUuidStringException $exception) { |
371 | - (static fn (Throwable $exception): Throwable => $exception)($exception); |
|
371 | + (static fn(Throwable $exception): Throwable => $exception)($exception); |
|
372 | 372 | } |
373 | 373 | |
374 | 374 | $parameters[] = array_map( |
375 | - static fn (string $value): Literal => $queryBuilder->expr()->literal(is_numeric($value) |
|
375 | + static fn(string $value): Literal => $queryBuilder->expr()->literal(is_numeric($value) |
|
376 | 376 | ? (int)$value |
377 | 377 | : $value), |
378 | 378 | $value |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Repository/Traits/RepositoryWrappersTrait.php |
5 | 5 | * |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | try { |
46 | 46 | $referenceId = UuidHelper::fromString($id); |
47 | 47 | } catch (InvalidUuidStringException $exception) { |
48 | - (static fn (Throwable $exception): string => (string)$exception)($exception); |
|
48 | + (static fn(Throwable $exception): string => (string)$exception)($exception); |
|
49 | 49 | |
50 | 50 | $referenceId = $id; |
51 | 51 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Utils/JSON.php |
5 | 5 | * |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $options ??= 0; |
44 | 44 | $depth ??= 512; |
45 | 45 | |
46 | - $output = json_encode($input, JSON_THROW_ON_ERROR | $options, $depth); |
|
46 | + $output = json_encode($input, JSON_THROW_ON_ERROR|$options, $depth); |
|
47 | 47 | |
48 | 48 | return (string)$output; |
49 | 49 | } |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | $depth ??= 512; |
71 | 71 | $options ??= 0; |
72 | 72 | |
73 | - return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR | $options); |
|
73 | + return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR|$options); |
|
74 | 74 | } |
75 | 75 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/EventListener/UserEntityEventListener.php |
5 | 5 | * |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | // Password hash callback |
97 | - $callback = fn (string $plainPassword): string => $this->userPasswordEncoder |
|
97 | + $callback = fn(string $plainPassword): string => $this->userPasswordEncoder |
|
98 | 98 | ->encodePassword(new SecurityUser($user, []), $plainPassword); |
99 | 99 | |
100 | 100 | // Set new password and encode it with user encoder |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/EventSubscriber/RequestLogSubscriber.php |
5 | 5 | * |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | || count( |
110 | 110 | array_filter( |
111 | 111 | $this->ignoredRoutes, |
112 | - static fn ($route): bool => strpos($route, '/*') !== false |
|
112 | + static fn($route): bool => strpos($route, '/*') !== false |
|
113 | 113 | && strpos($path, substr($route, 0, -2)) !== false |
114 | 114 | ) |
115 | 115 | ) !== 0 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Resource/ResourceCollection.php |
5 | 5 | * |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | public function filter(string $className): Closure |
73 | 73 | { |
74 | - return static fn (RestResourceInterface $restResource): bool => $restResource instanceof $className; |
|
74 | + return static fn(RestResourceInterface $restResource): bool => $restResource instanceof $className; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | public function error(string $className): void |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | return null; |
98 | 98 | } |
99 | 99 | |
100 | - $callback = static fn (RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName; |
|
100 | + $callback = static fn(RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName; |
|
101 | 101 | |
102 | 102 | $filteredIterator = new CallbackFilterIterator(new IteratorIterator($iterator), $callback); |
103 | 103 | $filteredIterator->rewind(); |