Passed
Pull Request — master (#21)
by Christoffer
02:08
created
src/Language/AST/Node/EnumValuesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/TypesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/InterfacesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/VariableDefinitionsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function getVariableDefinitionsAsArray(): 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->variableDefinitions);
32 32
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/FieldsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/ArgumentsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/InputFieldsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Language/Parser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
          * @return mixed
497 497
          * @throws GraphQLError
498 498
          */
499
-        $parseType = function (LexerInterface $lexer) {
499
+        $parseType = function(LexerInterface $lexer) {
500 500
             $this->expect($lexer, TokenKindEnum::COLON);
501 501
             return $this->parseTypeReference($lexer);
502 502
         };
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
          * @return mixed
627 627
          * @throws GraphQLError
628 628
          */
629
-        $parseValue = function (LexerInterface $lexer) {
629
+        $parseValue = function(LexerInterface $lexer) {
630 630
             $this->expect($lexer, TokenKindEnum::COLON);
631 631
             return $this->parseValueLiteral($lexer, false);
632 632
         };
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
          * @return mixed
654 654
          * @throws GraphQLError
655 655
          */
656
-        $parseValue = function (LexerInterface $lexer) {
656
+        $parseValue = function(LexerInterface $lexer) {
657 657
             $this->expect($lexer, TokenKindEnum::COLON);
658 658
             return $this->parseConstValue($lexer);
659 659
         };
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 
717 717
         // TODO: Consider adding experimental support fragment variables
718 718
 
719
-        $parseTypeCondition = function (LexerInterface $lexer) {
719
+        $parseTypeCondition = function(LexerInterface $lexer) {
720 720
             $this->expectKeyword($lexer, 'on');
721 721
             return $this->parseNamedType($lexer);
722 722
         };
@@ -912,7 +912,7 @@  discard block
 block discarded – undo
912 912
     {
913 913
         $start = $lexer->getToken();
914 914
 
915
-        $parseValue = function (LexerInterface $lexer, bool $isConst) {
915
+        $parseValue = function(LexerInterface $lexer, bool $isConst) {
916 916
             $this->expect($lexer, TokenKindEnum::COLON);
917 917
             return $this->parseValueLiteral($lexer, $isConst);
918 918
         };
Please login to merge, or discard this patch.
src/Type/scalars.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 {
73 73
     return arraySome(
74 74
         specifiedScalarTypes(),
75
-        function (ScalarType $specifiedScalarType) use ($type) {
75
+        function(ScalarType $specifiedScalarType) use ($type) {
76 76
             return $type->getName() === $specifiedScalarType->getName();
77 77
         }
78 78
     );
Please login to merge, or discard this patch.