Passed
Pull Request — master (#190)
by Sebastian
03:03
created
src/Language/Node/ObjectTypeDefinitionNode.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
     public function toArray(): array
23 23
     {
24 24
         return [
25
-          'kind' => $this->kind,
26
-          'description' => $this->getDescriptionAsArray(),
27
-          'name' => $this->getNameAsArray(),
28
-          'interfaces' => $this->getInterfacesAsArray(),
29
-          'directives' => $this->getDirectivesAsArray(),
30
-          'fields' => $this->getFieldsAsArray(),
31
-          'loc' => $this->getLocationAsArray(),
25
+            'kind' => $this->kind,
26
+            'description' => $this->getDescriptionAsArray(),
27
+            'name' => $this->getNameAsArray(),
28
+            'interfaces' => $this->getInterfacesAsArray(),
29
+            'directives' => $this->getDirectivesAsArray(),
30
+            'fields' => $this->getFieldsAsArray(),
31
+            'loc' => $this->getLocationAsArray(),
32 32
         ];
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Language/Node/ObjectTypeExtensionNode.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
     public function toArray(): array
22 22
     {
23 23
         return [
24
-          'kind' => $this->kind,
25
-          'name' => $this->getNameAsArray(),
26
-          'interfaces' => $this->getInterfacesAsArray(),
27
-          'directives' => $this->getDirectivesAsArray(),
28
-          'fields' => $this->getFieldsAsArray(),
29
-          'loc' => $this->getLocationAsArray(),
24
+            'kind' => $this->kind,
25
+            'name' => $this->getNameAsArray(),
26
+            'interfaces' => $this->getInterfacesAsArray(),
27
+            'directives' => $this->getDirectivesAsArray(),
28
+            'fields' => $this->getFieldsAsArray(),
29
+            'loc' => $this->getLocationAsArray(),
30 30
         ];
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Language/Node/NamedTypeNode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public function toArray(): array
19 19
     {
20 20
         return [
21
-          'kind' => $this->kind,
22
-          'name' => $this->getNameAsArray(),
23
-          'loc' => $this->getLocationAsArray(),
21
+            'kind' => $this->kind,
22
+            'name' => $this->getNameAsArray(),
23
+            'loc' => $this->getLocationAsArray(),
24 24
         ];
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Language/Node/ScalarTypeDefinitionNode.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace Digia\GraphQL\Language\Node;
4 4
 
5 5
 class ScalarTypeDefinitionNode extends AbstractNode implements TypeDefinitionNodeInterface, DirectivesAwareInterface,
6
-  NameAwareInterface
6
+    NameAwareInterface
7 7
 {
8 8
 
9 9
     use DescriptionTrait;
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
     public function toArray(): array
22 22
     {
23 23
         return [
24
-          'kind' => $this->kind,
25
-          'description' => $this->getDescriptionAsArray(),
26
-          'name' => $this->getNameAsArray(),
27
-          'directives' => $this->getDirectivesAsArray(),
28
-          'loc' => $this->getLocationAsArray(),
24
+            'kind' => $this->kind,
25
+            'description' => $this->getDescriptionAsArray(),
26
+            'name' => $this->getNameAsArray(),
27
+            'directives' => $this->getDirectivesAsArray(),
28
+            'loc' => $this->getLocationAsArray(),
29 29
         ];
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Language/Node/FieldNode.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace Digia\GraphQL\Language\Node;
4 4
 
5 5
 class FieldNode extends AbstractNode implements SelectionNodeInterface, ArgumentsAwareInterface,
6
-  DirectivesAwareInterface, NameAwareInterface
6
+    DirectivesAwareInterface, NameAwareInterface
7 7
 {
8 8
 
9 9
     use AliasTrait;
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
     public function toArray(): array
24 24
     {
25 25
         return [
26
-          'kind' => $this->kind,
27
-          'loc' => $this->getLocationAsArray(),
28
-          'alias' => $this->getAliasAsArray(),
29
-          'name' => $this->getNameAsArray(),
30
-          'arguments' => $this->getArgumentsAsArray(),
31
-          'directives' => $this->getDirectivesAsArray(),
32
-          'selectionSet' => $this->getSelectionSetAsArray(),
26
+            'kind' => $this->kind,
27
+            'loc' => $this->getLocationAsArray(),
28
+            'alias' => $this->getAliasAsArray(),
29
+            'name' => $this->getNameAsArray(),
30
+            'arguments' => $this->getArgumentsAsArray(),
31
+            'directives' => $this->getDirectivesAsArray(),
32
+            'selectionSet' => $this->getSelectionSetAsArray(),
33 33
         ];
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Language/Node/EnumTypeExtensionNode.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace Digia\GraphQL\Language\Node;
4 4
 
5 5
 class EnumTypeExtensionNode extends AbstractNode implements TypeExtensionNodeInterface, DirectivesAwareInterface,
6
-  NameAwareInterface
6
+    NameAwareInterface
7 7
 {
8 8
 
9 9
     use NameTrait;
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
     public function toArray(): array
22 22
     {
23 23
         return [
24
-          'kind' => $this->kind,
25
-          'name' => $this->getNameAsArray(),
26
-          'directives' => $this->getDirectivesAsArray(),
27
-          'values' => $this->getValuesAsArray(),
28
-          'loc' => $this->getLocationAsArray(),
24
+            'kind' => $this->kind,
25
+            'name' => $this->getNameAsArray(),
26
+            'directives' => $this->getDirectivesAsArray(),
27
+            'values' => $this->getValuesAsArray(),
28
+            'loc' => $this->getLocationAsArray(),
29 29
         ];
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Language/Node/InputValueDefinitionNode.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace Digia\GraphQL\Language\Node;
4 4
 
5 5
 class InputValueDefinitionNode extends AbstractNode implements DefinitionNodeInterface, DirectivesAwareInterface,
6
-  NameAwareInterface
6
+    NameAwareInterface
7 7
 {
8 8
 
9 9
     use DescriptionTrait;
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
     public function toArray(): array
24 24
     {
25 25
         return [
26
-          'kind' => $this->kind,
27
-          'description' => $this->getDescriptionAsArray(),
28
-          'name' => $this->getNameAsArray(),
29
-          'type' => $this->getTypeAsArray(),
30
-          'defaultValue' => $this->getDefaultValueAsArray(),
31
-          'directives' => $this->getDirectivesAsArray(),
32
-          'loc' => $this->getLocationAsArray(),
26
+            'kind' => $this->kind,
27
+            'description' => $this->getDescriptionAsArray(),
28
+            'name' => $this->getNameAsArray(),
29
+            'type' => $this->getTypeAsArray(),
30
+            'defaultValue' => $this->getDefaultValueAsArray(),
31
+            'directives' => $this->getDirectivesAsArray(),
32
+            'loc' => $this->getLocationAsArray(),
33 33
         ];
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Language/Node/BooleanValueNode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public function toArray(): array
19 19
     {
20 20
         return [
21
-          'kind' => $this->kind,
22
-          'value' => $this->value,
23
-          'loc' => $this->getLocationAsArray(),
21
+            'kind' => $this->kind,
22
+            'value' => $this->value,
23
+            'loc' => $this->getLocationAsArray(),
24 24
         ];
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Language/Node/AbstractNode.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
         // TODO: Remove this method when every node implement its own toArray-method.
52 52
 
53 53
         return [
54
-          'kind' => $this->kind,
55
-          'loc' => $this->getLocationAsArray(),
54
+            'kind' => $this->kind,
55
+            'loc' => $this->getLocationAsArray(),
56 56
         ];
57 57
     }
58 58
 
Please login to merge, or discard this patch.