@@ -12,10 +12,10 @@ discard block |
||
12 | 12 | /** @param string[] $excludeCriteria */ |
13 | 13 | public function __construct( |
14 | 14 | protected string $group = 'default', |
15 | - protected string|null $strategy = null, |
|
16 | - protected string|null $description = null, |
|
15 | + protected string | null $strategy = null, |
|
16 | + protected string | null $description = null, |
|
17 | 17 | protected array $excludeCriteria = [], |
18 | - protected string|null $filterCriteriaEventName = null, |
|
18 | + protected string | null $filterCriteriaEventName = null, |
|
19 | 19 | ) { |
20 | 20 | } |
21 | 21 | |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | return $this->group; |
25 | 25 | } |
26 | 26 | |
27 | - public function getStrategy(): string|null |
|
27 | + public function getStrategy(): string | null |
|
28 | 28 | { |
29 | 29 | return $this->strategy; |
30 | 30 | } |
31 | 31 | |
32 | - public function getDescription(): string|null |
|
32 | + public function getDescription(): string | null |
|
33 | 33 | { |
34 | 34 | return $this->description; |
35 | 35 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return $this->excludeCriteria; |
41 | 41 | } |
42 | 42 | |
43 | - public function getFilterCriteriaEventName(): string|null |
|
43 | + public function getFilterCriteriaEventName(): string | null |
|
44 | 44 | { |
45 | 45 | return $this->filterCriteriaEventName; |
46 | 46 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | public function get(Entity $entity): Closure |
58 | 58 | { |
59 | - return function ($source, array $args, $context, ResolveInfo $info) { |
|
59 | + return function($source, array $args, $context, ResolveInfo $info) { |
|
60 | 60 | $fieldResolver = $this->fieldResolver; |
61 | 61 | $collection = $fieldResolver($source, $args, $context, $info); |
62 | 62 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
120 | - if (! empty($orderBy)) { |
|
120 | + if (!empty($orderBy)) { |
|
121 | 121 | $criteria->orderBy($orderBy); |
122 | 122 | } |
123 | 123 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | array $pagination, |
134 | 134 | PersistentCollection $collection, |
135 | 135 | Criteria $criteria, |
136 | - string|null $filterCriteriaEventName, |
|
136 | + string | null $filterCriteriaEventName, |
|
137 | 137 | mixed ...$resolve, |
138 | 138 | ): array { |
139 | 139 | $first = 0; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | // Get total count from collection then match |
181 | 181 | $itemCount = count($collection->matching($criteria)); |
182 | 182 | |
183 | - if ($last && ! $before) { |
|
183 | + if ($last && !$before) { |
|
184 | 184 | $offset = $itemCount - $last; |
185 | 185 | } |
186 | 186 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | ]; |
222 | 222 | |
223 | 223 | $lastCursor = $cursor; |
224 | - if (! $firstCursor) { |
|
224 | + if (!$firstCursor) { |
|
225 | 225 | $firstCursor = $cursor; |
226 | 226 | } |
227 | 227 |