@@ -17,16 +17,16 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function __construct( |
19 | 19 | protected string $group = 'default', |
20 | - protected string|null $strategy = null, |
|
21 | - protected string|null $description = null, |
|
20 | + protected string | null $strategy = null, |
|
21 | + protected string | null $description = null, |
|
22 | 22 | protected array $excludeCriteria = [], |
23 | 23 | protected array $includeCriteria = [], |
24 | - protected string|null $filterCriteriaEventName = null, |
|
25 | - protected int|null $limit = null, |
|
24 | + protected string | null $filterCriteriaEventName = null, |
|
25 | + protected int | null $limit = null, |
|
26 | 26 | ) { |
27 | 27 | } |
28 | 28 | |
29 | - public function getLimit(): int|null |
|
29 | + public function getLimit(): int | null |
|
30 | 30 | { |
31 | 31 | return $this->limit; |
32 | 32 | } |
@@ -36,17 +36,17 @@ discard block |
||
36 | 36 | return $this->group; |
37 | 37 | } |
38 | 38 | |
39 | - public function getStrategy(): string|null |
|
39 | + public function getStrategy(): string | null |
|
40 | 40 | { |
41 | 41 | return $this->strategy; |
42 | 42 | } |
43 | 43 | |
44 | - public function getDescription(): string|null |
|
44 | + public function getDescription(): string | null |
|
45 | 45 | { |
46 | 46 | return $this->description; |
47 | 47 | } |
48 | 48 | |
49 | - public function getFilterCriteriaEventName(): string|null |
|
49 | + public function getFilterCriteriaEventName(): string | null |
|
50 | 50 | { |
51 | 51 | return $this->filterCriteriaEventName; |
52 | 52 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public function get(Entity $entity): Closure |
59 | 59 | { |
60 | - return function ($source, array $args, $context, ResolveInfo $info) { |
|
60 | + return function($source, array $args, $context, ResolveInfo $info) { |
|
61 | 61 | $fieldResolver = $this->fieldResolver; |
62 | 62 | $collection = $fieldResolver($source, $args, $context, $info); |
63 | 63 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | } |
120 | 120 | } |
121 | 121 | |
122 | - if (! empty($orderBy)) { |
|
122 | + if (!empty($orderBy)) { |
|
123 | 123 | $criteria->orderBy($orderBy); |
124 | 124 | } |
125 | 125 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | array $pagination, |
138 | 138 | PersistentCollection $collection, |
139 | 139 | Criteria $criteria, |
140 | - string|null $filterCriteriaEventName, |
|
140 | + string | null $filterCriteriaEventName, |
|
141 | 141 | mixed ...$resolve, |
142 | 142 | ): array { |
143 | 143 | $paginationFields = [ |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | 'cursor' => $cursors['last'], |
228 | 228 | ]; |
229 | 229 | |
230 | - if (! $cursors['first']) { |
|
230 | + if (!$cursors['first']) { |
|
231 | 231 | $cursors['first'] = $cursors['last']; |
232 | 232 | } |
233 | 233 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $limit = $associationLimit; |
260 | 260 | } |
261 | 261 | |
262 | - if (! $limit) { |
|
262 | + if (!$limit) { |
|
263 | 263 | $limit = $this->config->getLimit(); |
264 | 264 | } |
265 | 265 | |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | $offset = 0; |
281 | 281 | } |
282 | 282 | |
283 | - if ($paginationFields['last'] && ! $paginationFields['before']) { |
|
283 | + if ($paginationFields['last'] && !$paginationFields['before']) { |
|
284 | 284 | $offset = $itemCount - $paginationFields['last']; |
285 | 285 | } |
286 | 286 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | class NullifyOwningAssociation extends AbstractCollectionStrategy implements |
34 | 34 | StrategyInterface |
35 | 35 | { |
36 | - public function extract(mixed $value, object|null $object = null): mixed |
|
36 | + public function extract(mixed $value, object | null $object = null): mixed |
|
37 | 37 | { |
38 | 38 | throw new Error('Query is barred by Nullify Owning Association'); |
39 | 39 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @codeCoverageIgnore |
45 | 45 | */ |
46 | - public function hydrate(mixed $value, array|null $data): null |
|
46 | + public function hydrate(mixed $value, array | null $data): null |
|
47 | 47 | { |
48 | 48 | return null; |
49 | 49 | } |