Passed
Pull Request — master (#19)
by Christoffer
02:11
created
src/Language/AST/Node/SelectionSetNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getSelectionsAsArray(): 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->selections);
39 39
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/DocumentNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getDefinitionsAsArray(): 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->definitions);
39 39
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/Behavior/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/Behavior/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/AST/Node/DirectiveDefinitionNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function getLocationsAsArray(): array
41 41
     {
42
-        return array_map(function (SerializationInterface $node) {
42
+        return array_map(function(SerializationInterface $node) {
43 43
             return $node->toArray();
44 44
         }, $this->locations);
45 45
     }
Please login to merge, or discard this patch.
src/Language/AST/Node/SchemaDefinitionNode.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 getOperationTypesAsArray(): 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->operationTypes);
38 38
     }
Please login to merge, or discard this patch.
src/Execution/ExecutionStrategy.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      */
155 155
     protected function isDefinedField(ObjectType $parentType, string $fieldName)
156 156
     {
157
-       return isset($parentType->getFields()[$fieldName]);
157
+        return isset($parentType->getFields()[$fieldName]);
158 158
     }
159 159
 
160 160
     /**
Please login to merge, or discard this patch.
src/Type/Schema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                 )
165 165
             );
166 166
 
167
-            $this->_possibleTypeMap = array_reduce($possibleTypes, function (array $map, TypeInterface $type) {
167
+            $this->_possibleTypeMap = array_reduce($possibleTypes, function(array $map, TypeInterface $type) {
168 168
                 $map[$type->getName()] = true;
169 169
                 return $map;
170 170
             });
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     if ($type instanceof ObjectType || $type instanceof InterfaceType) {
377 377
         foreach ($type->getFields() as $field) {
378 378
             if ($field->hasArguments()) {
379
-                $fieldArgTypes = array_map(function (Argument $argument) {
379
+                $fieldArgTypes = array_map(function(Argument $argument) {
380 380
                     return $argument->getType();
381 381
                 }, $field->getArguments());
382 382
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         return $map;
408 408
     }
409 409
 
410
-    return array_reduce($directive->getArguments(), function ($map, Argument $argument) {
410
+    return array_reduce($directive->getArguments(), function($map, Argument $argument) {
411 411
         return typeMapReducer($map, $argument->getType());
412 412
     }, $map);
413 413
 }
Please login to merge, or discard this patch.
src/Language/buildSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     $documentNode = parse($source, $options);
25 25
 
26 26
     if (null === $instance) {
27
-        $resolveType = function (NamedTypeNode $node) {
27
+        $resolveType = function(NamedTypeNode $node) {
28 28
             throw new \Exception(sprintf('Type "%s" not found in document.', $node->getNameValue()));
29 29
         };
30 30
 
Please login to merge, or discard this patch.