Passed
Pull Request — master (#237)
by Christoffer
02:14
created
src/Language/Parser.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         /**
315 315
          * @return TypeNodeInterface
316 316
          */
317
-        $parseType = function (): TypeNodeInterface {
317
+        $parseType = function(): TypeNodeInterface {
318 318
             $this->expect(TokenKindEnum::COLON);
319 319
             return $this->lexType();
320 320
         };
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         /**
426 426
          * @return ArgumentNode
427 427
          */
428
-        $parseFunction = function () use ($isConst): ArgumentNode {
428
+        $parseFunction = function() use ($isConst) : ArgumentNode {
429 429
             return $this->lexArgument($isConst);
430 430
         };
431 431
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         /**
453 453
          * @return NodeInterface|TypeNodeInterface|ValueNodeInterface
454 454
          */
455
-        $parseValue = function () use ($isConst): NodeInterface {
455
+        $parseValue = function() use ($isConst): NodeInterface {
456 456
             $this->expect(TokenKindEnum::COLON);
457 457
             return $this->lexValue($isConst);
458 458
         };
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 
522 522
         $this->expectKeyword(KeywordEnum::FRAGMENT);
523 523
 
524
-        $parseTypeCondition = function () {
524
+        $parseTypeCondition = function() {
525 525
             $this->expectKeyword(KeywordEnum::ON);
526 526
             return $this->lexNamedType();
527 527
         };
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
     {
652 652
         $start = $this->lexer->getToken();
653 653
 
654
-        $parseFunction = function () use ($isConst) {
654
+        $parseFunction = function() use ($isConst) {
655 655
             return $this->lexValue($isConst);
656 656
         };
657 657
 
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
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->lexValue($isConst);
710 710
         };
@@ -1047,7 +1047,7 @@  discard block
 block discarded – undo
1047 1047
      */
1048 1048
     protected function lexArgumentsDefinition(): array
1049 1049
     {
1050
-        $parseFunction = function (): InputValueDefinitionNode {
1050
+        $parseFunction = function(): InputValueDefinitionNode {
1051 1051
             return $this->lexInputValueDefinition();
1052 1052
         };
1053 1053
 
@@ -1253,7 +1253,7 @@  discard block
 block discarded – undo
1253 1253
      */
1254 1254
     protected function lexInputFieldsDefinition(): array
1255 1255
     {
1256
-        $parseFunction = function (): InputValueDefinitionNode {
1256
+        $parseFunction = function(): InputValueDefinitionNode {
1257 1257
             return $this->lexInputValueDefinition();
1258 1258
         };
1259 1259
 
@@ -1557,7 +1557,7 @@  discard block
 block discarded – undo
1557 1557
 
1558 1558
         $name = $this->lexName();
1559 1559
 
1560
-        if (arraySome(DirectiveLocationEnum::values(), function ($value) use ($name) {
1560
+        if (arraySome(DirectiveLocationEnum::values(), function($value) use ($name) {
1561 1561
             return $name->getValue() === $value;
1562 1562
         })) {
1563 1563
             return $name;
Please login to merge, or discard this patch.