Passed
Push — master ( 974e77...edaba1 )
by Christoffer
02:10
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   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
         $instance = GraphQLScalarType([
38 38
             'name'         => TypeNameEnum::BOOLEAN,
39 39
             'description'  => 'The `Boolean` scalar type represents `true` or `false`.',
40
-            'serialize'    => function ($value) {
40
+            'serialize'    => function($value) {
41 41
                 return coerceBoolean($value);
42 42
             },
43
-            'parseValue'   => function ($value) {
43
+            'parseValue'   => function($value) {
44 44
                 return coerceBoolean($value);
45 45
             },
46
-            'parseLiteral' => function (NodeInterface $astNode) {
46
+            'parseLiteral' => function(NodeInterface $astNode) {
47 47
                 return $astNode->getKind() === NodeKindEnum::BOOLEAN ? $astNode->getValue() : null;
48 48
             },
49 49
         ]);
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
                 'The `Float` scalar type represents signed double-precision fractional ' .
85 85
                 'values as specified by ' .
86 86
                 '[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).',
87
-            'serialize'    => function ($value) {
87
+            'serialize'    => function($value) {
88 88
                 return coerceFloat($value);
89 89
             },
90
-            'parseValue'   => function ($value) {
90
+            'parseValue'   => function($value) {
91 91
                 return coerceFloat($value);
92 92
             },
93
-            'parseLiteral' => function (NodeInterface $astNode) {
93
+            'parseLiteral' => function(NodeInterface $astNode) {
94 94
                 return in_array($astNode->getKind(),
95 95
                     [NodeKindEnum::FLOAT, NodeKindEnum::INT]) ? $astNode->getValue() : null;
96 96
             },
@@ -142,13 +142,13 @@  discard block
 block discarded – undo
142 142
             'description'  =>
143 143
                 'The `Int` scalar type represents non-fractional signed whole numeric ' .
144 144
                 'values. Int can represent values between -(2^31) and 2^31 - 1.',
145
-            'serialize'    => function ($value) {
145
+            'serialize'    => function($value) {
146 146
                 return coerceInt($value);
147 147
             },
148
-            'parseValue'   => function ($value) {
148
+            'parseValue'   => function($value) {
149 149
                 return coerceInt($value);
150 150
             },
151
-            'parseLiteral' => function (NodeInterface $astNode) {
151
+            'parseLiteral' => function(NodeInterface $astNode) {
152 152
                 return $astNode->getKind() === NodeKindEnum::INT ? $astNode->getValue() : null;
153 153
             },
154 154
         ]);
@@ -199,13 +199,13 @@  discard block
 block discarded – undo
199 199
                 'response as a String; however, it is not intended to be human-readable. ' .
200 200
                 'When expected as an input type, any string (such as `"4"`) or integer ' .
201 201
                 '(such as `4`) input value will be accepted as an ID.',
202
-            'serialize'    => function ($value) {
202
+            'serialize'    => function($value) {
203 203
                 return coerceString($value);
204 204
             },
205
-            'parseValue'   => function ($value) {
205
+            'parseValue'   => function($value) {
206 206
                 return coerceString($value);
207 207
             },
208
-            'parseLiteral' => function (NodeInterface $astNode) {
208
+            'parseLiteral' => function(NodeInterface $astNode) {
209 209
                 return in_array($astNode->getKind(),
210 210
                     [NodeKindEnum::STRING, NodeKindEnum::INT]) ? $astNode->getValue() : null;
211 211
             },
@@ -229,13 +229,13 @@  discard block
 block discarded – undo
229 229
                 'The `String` scalar type represents textual data, represented as UTF-8 ' .
230 230
                 'character sequences. The String type is most often used by GraphQL to ' .
231 231
                 'represent free-form human-readable text.',
232
-            'serialize'    => function ($value) {
232
+            'serialize'    => function($value) {
233 233
                 return coerceString($value);
234 234
             },
235
-            'parseValue'   => function ($value) {
235
+            'parseValue'   => function($value) {
236 236
                 return coerceString($value);
237 237
             },
238
-            'parseLiteral' => function (NodeInterface $astNode) {
238
+            'parseLiteral' => function(NodeInterface $astNode) {
239 239
                 return $astNode->getKind() === NodeKindEnum::STRING ? $astNode->getValue() : null;
240 240
             },
241 241
         ]);
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 {
267 267
     return arraySome(
268 268
         specifiedScalarTypes(),
269
-        function (ScalarType $specifiedScalarType) use ($type) {
269
+        function(ScalarType $specifiedScalarType) use ($type) {
270 270
             return $type->getName() === $specifiedScalarType->getName();
271 271
         }
272 272
     );
Please login to merge, or discard this patch.