@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | /** |
| 363 | 363 | * @return TypeNodeInterface |
| 364 | 364 | */ |
| 365 | - $parseType = function (): TypeNodeInterface { |
|
| 365 | + $parseType = function(): TypeNodeInterface { |
|
| 366 | 366 | $this->expect(TokenKindEnum::COLON); |
| 367 | 367 | return $this->lexTypeReference(); |
| 368 | 368 | }; |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | /** |
| 474 | 474 | * @return ArgumentNode |
| 475 | 475 | */ |
| 476 | - $parseFunction = function () use ($isConst): ArgumentNode { |
|
| 476 | + $parseFunction = function() use ($isConst) : ArgumentNode { |
|
| 477 | 477 | return $this->lexArgument($isConst); |
| 478 | 478 | }; |
| 479 | 479 | |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | /** |
| 501 | 501 | * @return NodeInterface|TypeNodeInterface|ValueNodeInterface |
| 502 | 502 | */ |
| 503 | - $parseValue = function () use ($isConst): NodeInterface { |
|
| 503 | + $parseValue = function() use ($isConst): NodeInterface { |
|
| 504 | 504 | $this->expect(TokenKindEnum::COLON); |
| 505 | 505 | return $this->lexValueLiteral($isConst); |
| 506 | 506 | }; |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | |
| 570 | 570 | $this->expectKeyword(KeywordEnum::FRAGMENT); |
| 571 | 571 | |
| 572 | - $parseTypeCondition = function () { |
|
| 572 | + $parseTypeCondition = function() { |
|
| 573 | 573 | $this->expectKeyword(KeywordEnum::ON); |
| 574 | 574 | return $this->lexNamedType(); |
| 575 | 575 | }; |
@@ -699,7 +699,7 @@ discard block |
||
| 699 | 699 | { |
| 700 | 700 | $start = $this->lexer->getToken(); |
| 701 | 701 | |
| 702 | - $parseFunction = function () use ($isConst) { |
|
| 702 | + $parseFunction = function() use ($isConst) { |
|
| 703 | 703 | return $this->lexValueLiteral($isConst); |
| 704 | 704 | }; |
| 705 | 705 | |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | * @param bool $isConst |
| 753 | 753 | * @return NodeInterface|TypeNodeInterface|ValueNodeInterface |
| 754 | 754 | */ |
| 755 | - $parseValue = function (bool $isConst): NodeInterface { |
|
| 755 | + $parseValue = function(bool $isConst): NodeInterface { |
|
| 756 | 756 | $this->expect(TokenKindEnum::COLON); |
| 757 | 757 | return $this->lexValueLiteral($isConst); |
| 758 | 758 | }; |
@@ -1095,7 +1095,7 @@ discard block |
||
| 1095 | 1095 | */ |
| 1096 | 1096 | protected function lexArgumentsDefinition(): array |
| 1097 | 1097 | { |
| 1098 | - $parseFunction = function (): InputValueDefinitionNode { |
|
| 1098 | + $parseFunction = function(): InputValueDefinitionNode { |
|
| 1099 | 1099 | return $this->lexInputValueDefinition(); |
| 1100 | 1100 | }; |
| 1101 | 1101 | |
@@ -1301,7 +1301,7 @@ discard block |
||
| 1301 | 1301 | */ |
| 1302 | 1302 | protected function lexInputFieldsDefinition(): array |
| 1303 | 1303 | { |
| 1304 | - $parseFunction = function (): InputValueDefinitionNode { |
|
| 1304 | + $parseFunction = function(): InputValueDefinitionNode { |
|
| 1305 | 1305 | return $this->lexInputValueDefinition(); |
| 1306 | 1306 | }; |
| 1307 | 1307 | |
@@ -1605,7 +1605,7 @@ discard block |
||
| 1605 | 1605 | |
| 1606 | 1606 | $name = $this->lexName(); |
| 1607 | 1607 | |
| 1608 | - if (arraySome(DirectiveLocationEnum::values(), function ($value) use ($name) { |
|
| 1608 | + if (arraySome(DirectiveLocationEnum::values(), function($value) use ($name) { |
|
| 1609 | 1609 | return $name->getValue() === $value; |
| 1610 | 1610 | })) { |
| 1611 | 1611 | return $name; |