Passed
Pull Request — master (#226)
by Christoffer
02:35
created
src/Type/scalars.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 {
73 73
     return arraySome(
74 74
         specifiedScalarTypes(),
75
-        function (ScalarType $specifiedScalarType) use ($type) {
75
+        function(ScalarType $specifiedScalarType) use ($type) {
76 76
             return $type->getName() === $specifiedScalarType->getName();
77 77
         }
78 78
     );
Please login to merge, or discard this patch.
src/Type/introspection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 {
125 125
     return arraySome(
126 126
         introspectionTypes(),
127
-        function (NamedTypeInterface $introspectionType) use ($type) {
127
+        function(NamedTypeInterface $introspectionType) use ($type) {
128 128
             /** @noinspection PhpUndefinedMethodInspection */
129 129
             return $type->getName() === $introspectionType->getName();
130 130
         }
Please login to merge, or discard this patch.
src/Language/Node/ListValueNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getValuesAsArray(): array
40 40
     {
41
-        return \array_map(function (SerializationInterface $node) {
41
+        return \array_map(function(SerializationInterface $node) {
42 42
             return $node->toArray();
43 43
         }, $this->values);
44 44
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function __toString(): string
72 72
     {
73
-        return \json_encode(\array_map(function (ValueAwareInterface $node) {
73
+        return \json_encode(\array_map(function(ValueAwareInterface $node) {
74 74
             return $node->getValue();
75 75
         }, $this->getValues()));
76 76
     }
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function getDirective(string $name): ?Directive
159 159
     {
160
-        return find($this->directives, function (Directive $directive) use ($name) {
160
+        return find($this->directives, function(Directive $directive) use ($name) {
161 161
             return $directive->getName() === $name;
162 162
         });
163 163
     }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
             $this->possibleTypesMap[$abstractTypeName] = \array_reduce(
214 214
                 $possibleTypes,
215
-                function (array $map, NamedTypeInterface $type) {
215
+                function(array $map, NamedTypeInterface $type) {
216 216
                     $map[$type->getName()] = true;
217 217
                     return $map;
218 218
                 },
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
             if ($type instanceof ObjectType || $type instanceof InterfaceType) {
351 351
                 foreach ($type->getFields() as $field) {
352 352
                     if ($field->hasArguments()) {
353
-                        $fieldArgTypes = \array_map(function (Argument $argument) {
353
+                        $fieldArgTypes = \array_map(function(Argument $argument) {
354 354
                             return $argument->getType();
355 355
                         }, $field->getArguments());
356 356
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             return $map;
385 385
         }
386 386
 
387
-        return \array_reduce($directive->getArguments(), function ($map, Argument $argument) {
387
+        return \array_reduce($directive->getArguments(), function($map, Argument $argument) {
388 388
             return $this->typeMapReducer($map, $argument->getType());
389 389
         }, $map);
390 390
     }
Please login to merge, or discard this patch.