@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return $this->metadataConfig['typeName']; |
65 | 65 | } |
66 | 66 | |
67 | - public function getDescription(): string|null |
|
67 | + public function getDescription(): string | null |
|
68 | 68 | { |
69 | 69 | return $this->metadataConfig['description']; |
70 | 70 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
123 | 123 | |
124 | 124 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
125 | - if (! in_array($fieldName, array_keys($this->metadataConfig['fields']))) { |
|
125 | + if (!in_array($fieldName, array_keys($this->metadataConfig['fields']))) { |
|
126 | 126 | continue; |
127 | 127 | } |
128 | 128 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
141 | 141 | |
142 | 142 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
143 | - if (! in_array($associationName, array_keys($this->metadataConfig['fields']))) { |
|
143 | + if (!in_array($associationName, array_keys($this->metadataConfig['fields']))) { |
|
144 | 144 | continue; |
145 | 145 | } |
146 | 146 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | case ClassMetadataInfo::MANY_TO_ONE: |
152 | 152 | case ClassMetadataInfo::TO_ONE: |
153 | 153 | $targetEntity = $associationMetadata['targetEntity']; |
154 | - $fields[$associationName] = function () use ($targetEntity) { |
|
154 | + $fields[$associationName] = function() use ($targetEntity) { |
|
155 | 155 | $entity = $this->metadata->get($targetEntity); |
156 | 156 | |
157 | 157 | return [ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | case ClassMetadataInfo::MANY_TO_MANY: |
165 | 165 | case ClassMetadataInfo::TO_MANY: |
166 | 166 | $targetEntity = $associationMetadata['targetEntity']; |
167 | - $fields[$associationName] = function () use ($targetEntity, $associationName) { |
|
167 | + $fields[$associationName] = function() use ($targetEntity, $associationName) { |
|
168 | 168 | $entity = $this->metadata->get($targetEntity); |
169 | 169 | $shortName = $this->getTypeName() . '_' . $associationName; |
170 | 170 |
@@ -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 | $paginationFields = [ |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | ]; |
199 | 199 | |
200 | 200 | $lastCursor = $cursor; |
201 | - if (! $firstCursor) { |
|
201 | + if (!$firstCursor) { |
|
202 | 202 | $firstCursor = $cursor; |
203 | 203 | } |
204 | 204 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $offset = 0; |
250 | 250 | } |
251 | 251 | |
252 | - if ($paginationFields['last'] && ! $paginationFields['before']) { |
|
252 | + if ($paginationFields['last'] && !$paginationFields['before']) { |
|
253 | 253 | $offset = $itemCount - $paginationFields['last']; |
254 | 254 | } |
255 | 255 |