@@ -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 (ValueNodeInterface $node) { |
|
73 | + return \json_encode(\array_map(function(ValueNodeInterface $node) { |
|
74 | 74 | return $node->getValue(); |
75 | 75 | }, $this->getValues())); |
76 | 76 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function getArgumentsAsArray(): 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->getArguments()); |
38 | 38 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function getDefinitionsAsArray(): 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->definitions); |
44 | 44 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function getOperationTypesAsArray(): array |
44 | 44 | { |
45 | - return \array_map(function (SerializationInterface $node) { |
|
45 | + return \array_map(function(SerializationInterface $node) { |
|
46 | 46 | return $node->toArray(); |
47 | 47 | }, $this->operationTypes); |
48 | 48 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | */ |
54 | 54 | public function getLocationsAsArray(): array |
55 | 55 | { |
56 | - return \array_map(function (SerializationInterface $node) { |
|
56 | + return \array_map(function(SerializationInterface $node) { |
|
57 | 57 | return $node->toArray(); |
58 | 58 | }, $this->locations); |
59 | 59 | } |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | * @param LexerInterface $lexer |
322 | 322 | * @return mixed |
323 | 323 | */ |
324 | - $parseType = function (LexerInterface $lexer): TypeNodeInterface { |
|
324 | + $parseType = function(LexerInterface $lexer): TypeNodeInterface { |
|
325 | 325 | $this->expect($lexer, TokenKindEnum::COLON); |
326 | 326 | |
327 | 327 | return $this->parseTypeReference($lexer); |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | */ |
433 | 433 | protected function parseArguments(LexerInterface $lexer, bool $isConst = false): ?array |
434 | 434 | { |
435 | - $parseFunction = function (LexerInterface $lexer) use ($isConst): ArgumentNode { |
|
435 | + $parseFunction = function(LexerInterface $lexer) use ($isConst) : ArgumentNode { |
|
436 | 436 | return $this->parseArgument($lexer, $isConst); |
437 | 437 | }; |
438 | 438 | |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | * @param LexerInterface $lexer |
463 | 463 | * @return NodeInterface|TypeNodeInterface|ValueNodeInterface |
464 | 464 | */ |
465 | - $parseValue = function (LexerInterface $lexer) use ($isConst): NodeInterface { |
|
465 | + $parseValue = function(LexerInterface $lexer) use ($isConst): NodeInterface { |
|
466 | 466 | $this->expect($lexer, TokenKindEnum::COLON); |
467 | 467 | return $this->parseValueLiteral($lexer, $isConst); |
468 | 468 | }; |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | |
534 | 534 | $this->expectKeyword($lexer, KeywordEnum::FRAGMENT); |
535 | 535 | |
536 | - $parseTypeCondition = function (LexerInterface $lexer) { |
|
536 | + $parseTypeCondition = function(LexerInterface $lexer) { |
|
537 | 537 | $this->expectKeyword($lexer, 'on'); |
538 | 538 | return $this->parseNamedType($lexer); |
539 | 539 | }; |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | { |
664 | 664 | $start = $lexer->getToken(); |
665 | 665 | |
666 | - $parseFunction = function (LexerInterface $lexer) use ($isConst) { |
|
666 | + $parseFunction = function(LexerInterface $lexer) use ($isConst) { |
|
667 | 667 | return $this->parseValueLiteral($lexer, $isConst); |
668 | 668 | }; |
669 | 669 | |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | { |
716 | 716 | $start = $lexer->getToken(); |
717 | 717 | |
718 | - $parseValue = function (LexerInterface $lexer, bool $isConst) { |
|
718 | + $parseValue = function(LexerInterface $lexer, bool $isConst) { |
|
719 | 719 | $this->expect($lexer, TokenKindEnum::COLON); |
720 | 720 | |
721 | 721 | return $this->parseValueLiteral($lexer, $isConst); |
@@ -1072,7 +1072,7 @@ discard block |
||
1072 | 1072 | */ |
1073 | 1073 | protected function parseArgumentsDefinition(LexerInterface $lexer): array |
1074 | 1074 | { |
1075 | - $parseFunction = function (LexerInterface $lexer): InputValueDefinitionNode { |
|
1075 | + $parseFunction = function(LexerInterface $lexer): InputValueDefinitionNode { |
|
1076 | 1076 | return $this->parseInputValueDefinition($lexer); |
1077 | 1077 | }; |
1078 | 1078 | |
@@ -1287,7 +1287,7 @@ discard block |
||
1287 | 1287 | */ |
1288 | 1288 | protected function parseInputFieldsDefinition(LexerInterface $lexer): array |
1289 | 1289 | { |
1290 | - $parseFunction = function (LexerInterface $lexer): InputValueDefinitionNode { |
|
1290 | + $parseFunction = function(LexerInterface $lexer): InputValueDefinitionNode { |
|
1291 | 1291 | return $this->parseInputValueDefinition($lexer); |
1292 | 1292 | }; |
1293 | 1293 | |
@@ -1601,7 +1601,7 @@ discard block |
||
1601 | 1601 | |
1602 | 1602 | $name = $this->parseName($lexer); |
1603 | 1603 | |
1604 | - if (arraySome(DirectiveLocationEnum::values(), function ($value) use ($name) { |
|
1604 | + if (arraySome(DirectiveLocationEnum::values(), function($value) use ($name) { |
|
1605 | 1605 | return $name->getValue() === $value; |
1606 | 1606 | })) { |
1607 | 1607 | return $name; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function getVariableDefinitionsAsArray(): array |
26 | 26 | { |
27 | - return \array_map(function (SerializationInterface $node) { |
|
27 | + return \array_map(function(SerializationInterface $node) { |
|
28 | 28 | return $node->toArray(); |
29 | 29 | }, $this->variableDefinitions); |
30 | 30 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function getTypesAsArray(): 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->types); |
38 | 38 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getFieldsAsArray(): 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->fields); |
39 | 39 | } |