@@ -72,7 +72,7 @@ |
||
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 | ); |
@@ -124,7 +124,7 @@ |
||
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 | } |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 | } |
@@ -157,7 +157,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |