@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getArgumentsAsArray(): 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->arguments); |
39 | 39 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getInterfacesAsArray(): 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->interfaces); |
39 | 39 | } |
@@ -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 | } |
@@ -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 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function getDirectivesAsArray(): array |
32 | 32 | { |
33 | - return \array_map(function (DirectiveNode $directive) { |
|
33 | + return \array_map(function(DirectiveNode $directive) { |
|
34 | 34 | return $directive->toArray(); |
35 | 35 | }, $this->directives); |
36 | 36 | } |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | /** |
319 | 319 | * @return TypeNodeInterface |
320 | 320 | */ |
321 | - $parseType = function (): TypeNodeInterface { |
|
321 | + $parseType = function(): TypeNodeInterface { |
|
322 | 322 | $this->expect(TokenKindEnum::COLON); |
323 | 323 | return $this->parseTypeReference(); |
324 | 324 | }; |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | /** |
430 | 430 | * @return ArgumentNode |
431 | 431 | */ |
432 | - $parseFunction = function () use ($isConst): ArgumentNode { |
|
432 | + $parseFunction = function() use ($isConst) : ArgumentNode { |
|
433 | 433 | return $this->parseArgument($isConst); |
434 | 434 | }; |
435 | 435 | |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | /** |
457 | 457 | * @return NodeInterface|TypeNodeInterface|ValueNodeInterface |
458 | 458 | */ |
459 | - $parseValue = function () use ($isConst): NodeInterface { |
|
459 | + $parseValue = function() use ($isConst): NodeInterface { |
|
460 | 460 | $this->expect(TokenKindEnum::COLON); |
461 | 461 | return $this->parseValueLiteral($isConst); |
462 | 462 | }; |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | |
526 | 526 | $this->expectKeyword(KeywordEnum::FRAGMENT); |
527 | 527 | |
528 | - $parseTypeCondition = function () { |
|
528 | + $parseTypeCondition = function() { |
|
529 | 529 | $this->expectKeyword('on'); |
530 | 530 | return $this->parseNamedType(); |
531 | 531 | }; |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | { |
652 | 652 | $start = $this->lexer->getToken(); |
653 | 653 | |
654 | - $parseFunction = function () use ($isConst) { |
|
654 | + $parseFunction = function() use ($isConst) { |
|
655 | 655 | return $this->parseValueLiteral($isConst); |
656 | 656 | }; |
657 | 657 | |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | * @param bool $isConst |
705 | 705 | * @return NodeInterface|TypeNodeInterface|ValueNodeInterface |
706 | 706 | */ |
707 | - $parseValue = function (bool $isConst): NodeInterface { |
|
707 | + $parseValue = function(bool $isConst): NodeInterface { |
|
708 | 708 | $this->expect(TokenKindEnum::COLON); |
709 | 709 | return $this->parseValueLiteral($isConst); |
710 | 710 | }; |
@@ -1041,7 +1041,7 @@ discard block |
||
1041 | 1041 | */ |
1042 | 1042 | protected function parseArgumentsDefinition(): array |
1043 | 1043 | { |
1044 | - $parseFunction = function (): InputValueDefinitionNode { |
|
1044 | + $parseFunction = function(): InputValueDefinitionNode { |
|
1045 | 1045 | return $this->parseInputValueDefinition(); |
1046 | 1046 | }; |
1047 | 1047 | |
@@ -1245,7 +1245,7 @@ discard block |
||
1245 | 1245 | */ |
1246 | 1246 | protected function parseInputFieldsDefinition(): array |
1247 | 1247 | { |
1248 | - $parseFunction = function (): InputValueDefinitionNode { |
|
1248 | + $parseFunction = function(): InputValueDefinitionNode { |
|
1249 | 1249 | return $this->parseInputValueDefinition(); |
1250 | 1250 | }; |
1251 | 1251 | |
@@ -1549,7 +1549,7 @@ discard block |
||
1549 | 1549 | |
1550 | 1550 | $name = $this->parseName(); |
1551 | 1551 | |
1552 | - if (arraySome(DirectiveLocationEnum::values(), function ($value) use ($name) { |
|
1552 | + if (arraySome(DirectiveLocationEnum::values(), function($value) use ($name) { |
|
1553 | 1553 | return $name->getValue() === $value; |
1554 | 1554 | })) { |
1555 | 1555 | return $name; |