Passed
Pull Request — master (#351)
by Kirill
02:55
created
src/Validation/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
         $context = $this->createContext($schema, $document, $typeInfo);
48 48
 
49
-        $visitors = \array_map(function (RuleInterface $rule) use ($context) {
49
+        $visitors = \array_map(function(RuleInterface $rule) use ($context) {
50 50
             return $rule->setContext($context);
51 51
         }, $rules);
52 52
 
Please login to merge, or discard this patch.
src/Language/SourceLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         \preg_match_all("/\r\n|[\n\r]/", \substr($source->getBody(), 0, $position), $matches, PREG_OFFSET_CAPTURE);
62 62
 
63 63
         foreach ($matches[0] as $index => $match) {
64
-            $line   += 1;
64
+            $line += 1;
65 65
             $column = $position + 1 - ($match[1] + \strlen($match[0]));
66 66
         }
67 67
 
Please login to merge, or discard this patch.
src/Language/Lexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -578,7 +578,7 @@
 block discarded – undo
578 578
             if ($this->isEscapedTripleQuote($code)) {
579 579
                 $rawValue       .= sliceString($this->body, $chunkStart, $this->position) . '"""';
580 580
                 $this->position += 4;
581
-                $chunkStart     = $this->position;
581
+                $chunkStart = $this->position;
582 582
             } else {
583 583
                 ++$this->position;
584 584
             }
Please login to merge, or discard this patch.
src/Type/directives.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 {
51 51
     return arraySome(
52 52
         specifiedDirectives(),
53
-        function (Directive $specifiedDirective) use ($directive) {
53
+        function(Directive $specifiedDirective) use ($directive) {
54 54
             return $specifiedDirective->getName() === $directive->getName();
55 55
         }
56 56
     );
Please login to merge, or discard this patch.
src/Schema/Extension/ExtensionContext.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function getExtendedTypes(): array
114 114
     {
115
-        $extendedTypes = \array_map(function ($type) {
115
+        $extendedTypes = \array_map(function($type) {
116 116
             return $this->getExtendedType($type);
117 117
         }, $this->info->getSchema()->getTypeMap());
118 118
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         return \array_merge(
136 136
             $existingDirectives,
137
-            \array_map(function (DirectiveDefinitionNode $node) {
137
+            \array_map(function(DirectiveDefinitionNode $node) {
138 138
                 return $this->definitionBuilder->buildDirective($node);
139 139
             }, $this->info->getDirectiveDefinitions())
140 140
         );
@@ -240,10 +240,10 @@  discard block
 block discarded – undo
240 240
         return newObjectType([
241 241
             'name'              => $typeName,
242 242
             'description'       => $type->getDescription(),
243
-            'interfaces'        => function () use ($type) {
243
+            'interfaces'        => function() use ($type) {
244 244
                 return $this->extendImplementedInterfaces($type);
245 245
             },
246
-            'fields'            => function () use ($type) {
246
+            'fields'            => function() use ($type) {
247 247
                 return $this->extendFieldMap($type);
248 248
             },
249 249
             'astNode'           => $type->getAstNode(),
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
         return newInterfaceType([
270 270
             'name'              => $typeName,
271 271
             'description'       => $type->getDescription(),
272
-            'fields'            => function () use ($type) {
272
+            'fields'            => function() use ($type) {
273 273
                 return $this->extendFieldMap($type);
274 274
             },
275 275
             'astNode'           => $type->getAstNode(),
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         return newUnionType([
300 300
             'name'        => $type->getName(),
301 301
             'description' => $type->getDescription(),
302
-            'types'       => \array_map(function ($unionType) {
302
+            'types'       => \array_map(function($unionType) {
303 303
                 return $this->getExtendedType($unionType);
304 304
             }, $type->getTypes()),
305 305
             'astNode'     => $type->getAstNode(),
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     {
317 317
         $typeName = $type->getName();
318 318
 
319
-        $interfaces = \array_map(function (InterfaceType $interface) {
319
+        $interfaces = \array_map(function(InterfaceType $interface) {
320 320
             return $this->getExtendedType($interface);
321 321
         }, $type->getInterfaces());
322 322
 
Please login to merge, or discard this patch.
src/Language/NodePrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@
 block discarded – undo
370 370
      */
371 371
     protected function printMany(array $nodes): array
372 372
     {
373
-        return \array_map(function ($node) {
373
+        return \array_map(function($node) {
374 374
             return $this->print($node);
375 375
         }, $nodes);
376 376
     }
Please login to merge, or discard this patch.
src/Util/ValueHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
             return false;
37 37
         }
38 38
 
39
-        return arrayEvery($argumentsA, function (ArgumentNode $argumentA) use ($argumentsB) {
40
-            $argumentB = find($argumentsB, function (ArgumentNode $argument) use ($argumentA) {
39
+        return arrayEvery($argumentsA, function(ArgumentNode $argumentA) use ($argumentsB) {
40
+            $argumentB = find($argumentsB, function(ArgumentNode $argument) use ($argumentA) {
41 41
                 return $argument->getNameValue() === $argumentA->getNameValue();
42 42
             });
43 43
 
Please login to merge, or discard this patch.
src/Util/ValueASTConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
         $values = [];
180 180
 
181 181
         /** @var ObjectFieldNode[] $fieldNodes */
182
-        $fieldNodes = keyMap($node->getFields(), function (ObjectFieldNode $value) {
182
+        $fieldNodes = keyMap($node->getFields(), function(ObjectFieldNode $value) {
183 183
             return $value->getNameValue();
184 184
         });
185 185
 
Please login to merge, or discard this patch.
src/Validation/Conflict/ConflictFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -691,13 +691,13 @@
 block discarded – undo
691 691
 
692 692
         return new Conflict(
693 693
             $responseName,
694
-            array_map(function (Conflict $conflict) {
694
+            array_map(function(Conflict $conflict) {
695 695
                 return [$conflict->getResponseName(), $conflict->getReason()];
696 696
             }, $conflicts),
697
-            array_reduce($conflicts, function ($allFields, Conflict $conflict) {
697
+            array_reduce($conflicts, function($allFields, Conflict $conflict) {
698 698
                 return array_merge($allFields, $conflict->getFieldsA());
699 699
             }, [$nodeA]),
700
-            array_reduce($conflicts, function ($allFields, Conflict $conflict) {
700
+            array_reduce($conflicts, function($allFields, Conflict $conflict) {
701 701
                 return array_merge($allFields, $conflict->getFieldsB());
702 702
             }, [$nodeB])
703 703
         );
Please login to merge, or discard this patch.