Passed
Pull Request — master (#209)
by Christoffer
02:27
created
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/Schema/DefinitionPrinter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 
38 38
         return $this->printFilteredSchema(
39 39
             $schema,
40
-            function (Directive $directive): bool {
40
+            function(Directive $directive): bool {
41 41
                 return !isSpecifiedDirective($directive);
42 42
             },
43
-            function (TypeInterface $type): bool {
43
+            function(TypeInterface $type): bool {
44 44
                 return !isSpecifiedScalarType($type) && !isIntrospectionType($type);
45 45
             }
46 46
         );
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
 
57 57
         return $this->printFilteredSchema(
58 58
             $schema,
59
-            function (Directive $directive): bool {
59
+            function(Directive $directive): bool {
60 60
                 return isSpecifiedDirective($directive);
61 61
             },
62
-            function (TypeInterface $type): bool {
62
+            function(TypeInterface $type): bool {
63 63
                 return isIntrospectionType($type);
64 64
             }
65 65
         );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $types = \array_filter(\array_values($schema->getTypeMap()), $filter);
125 125
 
126
-        \usort($types, function (NamedTypeInterface $typeA, NamedTypeInterface $typeB) {
126
+        \usort($types, function(NamedTypeInterface $typeA, NamedTypeInterface $typeB) {
127 127
             return \strcasecmp($typeA->getName(), $typeB->getName());
128 128
         });
129 129
 
@@ -249,11 +249,11 @@  discard block
 block discarded – undo
249 249
         $description = $this->printDescription($type);
250 250
         $name        = $type->getName();
251 251
         $implements  = $type->hasInterfaces()
252
-            ? ' implements ' . printArray(' & ', \array_map(function (InterfaceType $interface) {
252
+            ? ' implements ' . printArray(' & ', \array_map(function(InterfaceType $interface) {
253 253
                 return $interface->getName();
254 254
             }, $type->getInterfaces()))
255 255
             : '';
256
-        $fields      = $this->printMany($type->getFields());
256
+        $fields = $this->printMany($type->getFields());
257 257
 
258 258
         return printLines([
259 259
             $description,
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
     protected function printEnumValues(array $values): string
319 319
     {
320
-        return printLines(\array_map(function (EnumValue $value, $i) {
320
+        return printLines(\array_map(function(EnumValue $value, $i) {
321 321
             $description = $this->printDescription($value, '  ', 0 === $i);
322 322
             $name        = $value->getName();
323 323
             $deprecated  = $this->printDeprecated($value);
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
      */
426 426
     protected function printMany(array $definitions): array
427 427
     {
428
-        return \array_map(function ($definition) {
428
+        return \array_map(function($definition) {
429 429
             return $this->print($definition);
430 430
         }, $definitions);
431 431
     }
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.