Passed
Push — main ( 3566f6...4aba17 )
by Tom
59s queued 13s
created
src/Type/Entity.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resolve/ResolveCollectionFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             }
119 119
         }
120 120
 
121
-        if (! empty($orderBy)) {
121
+        if (!empty($orderBy)) {
122 122
             $criteria->orderBy($orderBy);
123 123
         }
124 124
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         array $pagination,
135 135
         PersistentCollection $collection,
136 136
         Criteria $criteria,
137
-        string|null $filterCriteriaEventName,
137
+        string | null $filterCriteriaEventName,
138 138
         mixed ...$resolve,
139 139
     ): array {
140 140
         $paginationFields = [
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                 'cursor' => $cursors['last'],
225 225
             ];
226 226
 
227
-            if (! $cursors['first']) {
227
+            if (!$cursors['first']) {
228 228
                 $cursors['first'] = $cursors['last'];
229 229
             }
230 230
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
             $offset = 0;
268 268
         }
269 269
 
270
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
270
+        if ($paginationFields['last'] && !$paginationFields['before']) {
271 271
             $offset = $itemCount - $paginationFields['last'];
272 272
         }
273 273
 
Please login to merge, or discard this patch.