@@ -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 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function getSelectionsAsArray(): array |
| 35 | 35 | { |
| 36 | - return array_map(function (SerializationInterface $node) { |
|
| 36 | + return array_map(function(SerializationInterface $node) { |
|
| 37 | 37 | return $node->toArray(); |
| 38 | 38 | }, $this->selections); |
| 39 | 39 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function getDefinitionsAsArray(): array |
| 35 | 35 | { |
| 36 | - return array_map(function (SerializationInterface $node) { |
|
| 36 | + return array_map(function(SerializationInterface $node) { |
|
| 37 | 37 | return $node->toArray(); |
| 38 | 38 | }, $this->definitions); |
| 39 | 39 | } |
@@ -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 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 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | ) |
| 176 | 176 | ); |
| 177 | 177 | |
| 178 | - $this->_possibleTypeMap = array_reduce($possibleTypes, function (array $map, TypeInterface $type) { |
|
| 178 | + $this->_possibleTypeMap = array_reduce($possibleTypes, function(array $map, TypeInterface $type) { |
|
| 179 | 179 | $map[$type->getName()] = true; |
| 180 | 180 | return $map; |
| 181 | 181 | }); |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | if ($type instanceof ObjectType || $type instanceof InterfaceType) { |
| 364 | 364 | foreach ($type->getFields() as $field) { |
| 365 | 365 | if ($field->hasArgs()) { |
| 366 | - $fieldArgTypes = array_map(function (Argument $argument) { |
|
| 366 | + $fieldArgTypes = array_map(function(Argument $argument) { |
|
| 367 | 367 | return $argument->getType(); |
| 368 | 368 | }, $field->getArgs()); |
| 369 | 369 | |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | return $map; |
| 395 | 395 | } |
| 396 | 396 | |
| 397 | - return array_reduce($directive->getArgs(), function ($map, Argument $argument) { |
|
| 397 | + return array_reduce($directive->getArgs(), function($map, Argument $argument) { |
|
| 398 | 398 | return typeMapReducer($map, $argument->getType()); |
| 399 | 399 | }, $map); |
| 400 | 400 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function getLocationsAsArray(): array |
| 41 | 41 | { |
| 42 | - return array_map(function (SerializationInterface $node) { |
|
| 42 | + return array_map(function(SerializationInterface $node) { |
|
| 43 | 43 | return $node->toArray(); |
| 44 | 44 | }, $this->locations); |
| 45 | 45 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function getOperationTypesAsArray(): 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->operationTypes); |
| 38 | 38 | } |