@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | return $coercedValues; |
36 | 36 | } |
37 | 37 | |
38 | - $argumentNodeMap = keyMap($argumentNodes, function (ArgumentNode $value) { |
|
38 | + $argumentNodeMap = keyMap($argumentNodes, function(ArgumentNode $value) { |
|
39 | 39 | return $value->getNameValue(); |
40 | 40 | }); |
41 | 41 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | function getDirectiveValues(DirectiveInterface $directive, NodeInterface $node, array $variableValues = []): ?array |
106 | 106 | { |
107 | 107 | $directiveNode = $node->hasDirectives() |
108 | - ? find($node->getDirectives(), function (NamedTypeNode $value) use ($directive) { |
|
108 | + ? find($node->getDirectives(), function(NamedTypeNode $value) use ($directive) { |
|
109 | 109 | return $value->getNameValue() === $directive->getName(); |
110 | 110 | }) : null; |
111 | 111 |
@@ -101,7 +101,7 @@ |
||
101 | 101 | $coercedObject = []; |
102 | 102 | |
103 | 103 | /** @var ObjectFieldNode[] $fieldNodes */ |
104 | - $fieldNodes = keyMap($node->getFields(), function (FieldNode $value) { |
|
104 | + $fieldNodes = keyMap($node->getFields(), function(FieldNode $value) { |
|
105 | 105 | return $value->getNameValue(); |
106 | 106 | }); |
107 | 107 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function getValuesAsArray(): array |
34 | 34 | { |
35 | - return array_map(function (SerializationInterface $node) { |
|
35 | + return array_map(function(SerializationInterface $node) { |
|
36 | 36 | return $node->toArray(); |
37 | 37 | }, $this->values); |
38 | 38 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getTypesAsArray(): array |
28 | 28 | { |
29 | - return array_map(function (SerializationInterface $node) { |
|
29 | + return array_map(function(SerializationInterface $node) { |
|
30 | 30 | return $node->toArray(); |
31 | 31 | }, $this->types); |
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getInterfacesAsArray(): array |
28 | 28 | { |
29 | - return array_map(function (SerializationInterface $node) { |
|
29 | + return array_map(function(SerializationInterface $node) { |
|
30 | 30 | return $node->toArray(); |
31 | 31 | }, $this->interfaces); |
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getVariableDefinitionsAsArray(): array |
28 | 28 | { |
29 | - return array_map(function (SerializationInterface $node) { |
|
29 | + return array_map(function(SerializationInterface $node) { |
|
30 | 30 | return $node->toArray(); |
31 | 31 | }, $this->variableDefinitions); |
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getFieldsAsArray(): array |
28 | 28 | { |
29 | - return array_map(function (SerializationInterface $node) { |
|
29 | + return array_map(function(SerializationInterface $node) { |
|
30 | 30 | return $node->toArray(); |
31 | 31 | }, $this->fields); |
32 | 32 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getFieldsAsArray(): array |
28 | 28 | { |
29 | - return array_map(function (SerializationInterface $node) { |
|
29 | + return array_map(function(SerializationInterface $node) { |
|
30 | 30 | return $node->toArray(); |
31 | 31 | }, $this->fields); |
32 | 32 | } |
@@ -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 | ); |