Passed
Push — main ( 947fb5...1d2a77 )
by Tom
55s queued 13s
created
src/Hydrator/Filter/Password.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
             'secret',
19 19
         ];
20 20
 
21
-        return ! in_array($property, $excludeFields);
21
+        return !in_array($property, $excludeFields);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Hydrator/Strategy/AbstractCollectionStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $object = $this->getObject();
112 112
         $getter = 'get' . $this->getInflector()->classify($this->getCollectionName());
113 113
 
114
-        if (! method_exists($object, $getter)) {
114
+        if (!method_exists($object, $getter)) {
115 115
             throw new InvalidArgumentException(
116 116
                 sprintf(
117 117
                     'The getter %s to access collection %s in object %s does not exist',
Please login to merge, or discard this patch.
src/Criteria/CriteriaFactory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -74,16 +74,16 @@  discard block
 block discarded – undo
74 74
         // Limit entity filters
75 75
         if ($entityMetadata['excludeCriteria']) {
76 76
             $excludeCriteria = $entityMetadata['excludeCriteria'];
77
-            $allowedFilters  = array_filter($allowedFilters, static function ($value) use ($excludeCriteria) {
78
-                return ! in_array($value, $excludeCriteria);
77
+            $allowedFilters  = array_filter($allowedFilters, static function($value) use ($excludeCriteria) {
78
+                return !in_array($value, $excludeCriteria);
79 79
             });
80 80
         }
81 81
 
82 82
         // Limit association filters
83 83
         if ($associationName) {
84 84
             $excludeCriteria = $associationMetadata['excludeCriteria'];
85
-            $allowedFilters  = array_filter($allowedFilters, static function ($value) use ($excludeCriteria) {
86
-                return ! in_array($value, $excludeCriteria);
85
+            $allowedFilters  = array_filter($allowedFilters, static function($value) use ($excludeCriteria) {
86
+                return !in_array($value, $excludeCriteria);
87 87
             });
88 88
         }
89 89
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $graphQLType = null;
92 92
 
93 93
             // Only process fields which are in the graphql metadata
94
-            if (! in_array($fieldName, array_keys($entityMetadata['fields']))) {
94
+            if (!in_array($fieldName, array_keys($entityMetadata['fields']))) {
95 95
                 continue;
96 96
             }
97 97
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
             // Build simple filters
121 121
             foreach ($descriptions as $filter => $docs) {
122
-                if (! in_array($filter, $allowedFilters)) {
122
+                if (!in_array($filter, $allowedFilters)) {
123 123
                     continue;
124 124
                 }
125 125
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 ];
220 220
             }
221 221
 
222
-            if (! in_array(Filters::CONTAINS, $allowedFilters)) {
222
+            if (!in_array(Filters::CONTAINS, $allowedFilters)) {
223 223
                 continue;
224 224
             }
225 225
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
         foreach ($classMetadata->getAssociationNames() as $associationName) {
234 234
             // Only process fields which are in the graphql metadata
235
-            if (! in_array($associationName, array_keys($entityMetadata['fields']))) {
235
+            if (!in_array($associationName, array_keys($entityMetadata['fields']))) {
236 236
                 continue;
237 237
             }
238 238
 
@@ -261,17 +261,17 @@  discard block
 block discarded – undo
261 261
         }
262 262
 
263 263
         // Cursor pagination
264
-        $fields['_first']  = [
264
+        $fields['_first'] = [
265 265
             'name' => '_first',
266 266
             'type' => Type::int(),
267 267
             'documentation' => 'Items per page starting from the beginning.',
268 268
         ];
269
-        $fields['_after']  = [
269
+        $fields['_after'] = [
270 270
             'name' => '_after',
271 271
             'type' => Type::string(),
272 272
             'documentation' => 'Cursor from which the items are returned.',
273 273
         ];
274
-        $fields['_last']   = [
274
+        $fields['_last'] = [
275 275
             'name' => '_last',
276 276
             'type' => Type::int(),
277 277
             'documentation' => 'Items per page starting from the end.',
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 
285 285
         $arrayObject = new ArrayObject([
286 286
             'name' => $typeName,
287
-            'fields' => static function () use ($fields) {
287
+            'fields' => static function() use ($fields) {
288 288
                 return $fields;
289 289
             },
290 290
         ]);
Please login to merge, or discard this patch.
src/Metadata/Metadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
     /** @throws Error */
19 19
     public function get(string $id): Entity
20 20
     {
21
-        if (! isset($this->metadataConfig[$id])) {
21
+        if (!isset($this->metadataConfig[$id])) {
22 22
             throw new Error(
23 23
                 'Entity ' . $id . ' is not mapped in the metadata',
24 24
             );
25 25
         }
26 26
 
27
-        if (! $this->has($id)) {
27
+        if (!$this->has($id)) {
28 28
             $this->set($id, new Entity($this->container, $this->metadataConfig[$id]));
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Metadata/MetadataFactory.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
                 // Only one matching instance per group is allowed
146 146
                 assert(
147
-                    ! $entityInstance,
147
+                    !$entityInstance,
148 148
                     'Duplicate attribute found for entity '
149 149
                     . $entityClass . ', group ' . $instance->getGroup(),
150 150
                 );
@@ -164,8 +164,7 @@  discard block
 block discarded – undo
164 164
                     'excludeCriteria' => $instance->getExcludeCriteria(),
165 165
                     'description' => $instance->getDescription(),
166 166
                     'typeName' => $instance->getTypeName()
167
-                        ? $this->appendGroupSuffix($instance->getTypeName()) :
168
-                          $this->getTypeName($entityClass),
167
+                        ? $this->appendGroupSuffix($instance->getTypeName()) : $this->getTypeName($entityClass),
169 168
                 ];
170 169
             }
171 170
 
@@ -188,7 +187,7 @@  discard block
 block discarded – undo
188 187
 
189 188
                     // Only one matching instance per group is allowed
190 189
                     assert(
191
-                        ! $fieldInstance,
190
+                        !$fieldInstance,
192 191
                         'Duplicate attribute found for field '
193 192
                         . $fieldName . ', group ' . $instance->getGroup(),
194 193
                     );
@@ -231,7 +230,7 @@  discard block
 block discarded – undo
231 230
 
232 231
                     // Only one matching instance per group is allowed
233 232
                     assert(
234
-                        ! $associationInstance,
233
+                        !$associationInstance,
235 234
                         'Duplicate attribute found for association '
236 235
                         . $associationName . ', group ' . $instance->getGroup(),
237 236
                     );
Please login to merge, or discard this patch.
src/Input/InputFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         return new InputObjectType([
43 43
             'name' => $targetEntity->getTypeName() . '_Input',
44 44
             'description' => $targetEntity->getDescription(),
45
-            'fields' => function () use ($id, $targetEntity, $requiredFields, $optionalFields): array {
45
+            'fields' => function() use ($id, $targetEntity, $requiredFields, $optionalFields): array {
46 46
                 $fields = [];
47 47
 
48 48
                 foreach ($this->entityManager->getClassMetadata($id)->getFieldNames() as $fieldName) {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                      * no reason to set or update an identifier.  For the case where an identifier
52 52
                      * should be set or updated, this facotry is not the correct solution.
53 53
                      */
54
-                    if (! empty($optionalFields)) {
54
+                    if (!empty($optionalFields)) {
55 55
                         // Include field as optional
56 56
                         if (in_array($fieldName, $optionalFields) || $optionalFields === ['*']) {
57 57
                             if ($optionalFields === ['*'] && $this->entityManager->getClassMetadata($id)->isIdentifier($fieldName)) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                             $fields[$fieldName]['description'] = $targetEntity->getMetadataConfig()['fields'][$fieldName]['description'];
62 62
                             $fields[$fieldName]['type']        = $this->typeManager->get($targetEntity->getMetadataConfig()['fields'][$fieldName]['type']);
63 63
                         }
64
-                    } elseif (! empty($requiredFields)) {
64
+                    } elseif (!empty($requiredFields)) {
65 65
                         // Include fields as required
66 66
                         if (in_array($fieldName, $requiredFields) || $requiredFields === ['*']) {
67 67
                             if ($requiredFields === ['*'] && $this->entityManager->getClassMetadata($id)->isIdentifier($fieldName)) {
Please login to merge, or discard this patch.
src/Type/Time.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string
22 22
     {
23 23
         // @codeCoverageIgnoreStart
24
-        if (! $valueNode instanceof StringValueNode) {
24
+        if (!$valueNode instanceof StringValueNode) {
25 25
             throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, $valueNode);
26 26
         }
27 27
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function parseValue(mixed $value): PHPDateTime
34 34
     {
35
-        if (! is_string($value)) {
35
+        if (!is_string($value)) {
36 36
             throw new Error('Time is not a string: ' . $value);
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Type/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string
22 22
     {
23 23
         // @codeCoverageIgnoreStart
24
-        if (! $valueNode instanceof StringValueNode) {
24
+        if (!$valueNode instanceof StringValueNode) {
25 25
             throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, $valueNode);
26 26
         }
27 27
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function parseValue(mixed $value): PHPDateTime
34 34
     {
35
-        if (! is_string($value)) {
35
+        if (!is_string($value)) {
36 36
             throw new Error('Date is not a string: ' . $value);
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Type/TimeImmutable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string
22 22
     {
23 23
         // @codeCoverageIgnoreStart
24
-        if (! $valueNode instanceof StringValueNode) {
24
+        if (!$valueNode instanceof StringValueNode) {
25 25
             throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, $valueNode);
26 26
         }
27 27
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function parseValue(mixed $value): PHPDateTime|false
34 34
     {
35
-        if (! is_string($value)) {
35
+        if (!is_string($value)) {
36 36
             throw new Error('Time is not a string: ' . $value);
37 37
         }
38 38
 
Please login to merge, or discard this patch.