@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | public function getMultiple($keys, $default = null) |
61 | 61 | { |
62 | - return array_filter($this->cache, function ($key) use ($keys) { |
|
62 | + return array_filter($this->cache, function($key) use ($keys) { |
|
63 | 63 | return \in_array($key, $keys, true); |
64 | 64 | }, ARRAY_FILTER_USE_KEY); |
65 | 65 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | protected function printNodes(array $nodes): array |
38 | 38 | { |
39 | - return array_map(function ($node) { |
|
39 | + return array_map(function($node) { |
|
40 | 40 | return $this->printer->print($node); |
41 | 41 | }, $nodes); |
42 | 42 | } |
@@ -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 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 | } |
@@ -42,9 +42,9 @@ |
||
42 | 42 | public function toArray(): array |
43 | 43 | { |
44 | 44 | return [ |
45 | - 'kind' => $this->kind, |
|
46 | - 'definitions' => $this->getDefinitionsAsArray(), |
|
47 | - 'loc' => $this->getLocationAsArray(), |
|
45 | + 'kind' => $this->kind, |
|
46 | + 'definitions' => $this->getDefinitionsAsArray(), |
|
47 | + 'loc' => $this->getLocationAsArray(), |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getArgumentsAsArray(): 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->arguments); |
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 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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -42,9 +42,9 @@ |
||
42 | 42 | public function toArray(): array |
43 | 43 | { |
44 | 44 | return [ |
45 | - 'kind' => $this->kind, |
|
46 | - 'loc' => $this->getLocationAsArray(), |
|
47 | - 'selections' => $this->getSelectionsAsArray(), |
|
45 | + 'kind' => $this->kind, |
|
46 | + 'loc' => $this->getLocationAsArray(), |
|
47 | + 'selections' => $this->getSelectionsAsArray(), |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |