@@ -3,7 +3,7 @@ discard block |
||
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 |
||
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 | } |
@@ -42,9 +42,9 @@ |
||
42 | 42 | public function toArray(): array |
43 | 43 | { |
44 | 44 | return [ |
45 | - 'kind' => $this->kind, |
|
46 | - 'definitions' => $this->getDefinitionsAsArray(), |
|
47 | - 'loc' => $this->getLocationAsArray(), |
|
45 | + 'kind' => $this->kind, |
|
46 | + 'definitions' => $this->getDefinitionsAsArray(), |
|
47 | + 'loc' => $this->getLocationAsArray(), |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |
@@ -18,9 +18,9 @@ |
||
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 | } |
@@ -51,8 +51,8 @@ |
||
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 |
@@ -20,11 +20,11 @@ |
||
20 | 20 | public function toArray(): array |
21 | 21 | { |
22 | 22 | return [ |
23 | - 'kind' => $this->kind, |
|
24 | - 'name' => $this->getNameAsArray(), |
|
25 | - 'directives' => $this->getDirectivesAsArray(), |
|
26 | - 'fields' => $this->getFieldsAsArray(), |
|
27 | - 'loc' => $this->getLocationAsArray(), |
|
23 | + 'kind' => $this->kind, |
|
24 | + 'name' => $this->getNameAsArray(), |
|
25 | + 'directives' => $this->getDirectivesAsArray(), |
|
26 | + 'fields' => $this->getFieldsAsArray(), |
|
27 | + 'loc' => $this->getLocationAsArray(), |
|
28 | 28 | ]; |
29 | 29 | } |
30 | 30 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace Digia\GraphQL\Language\Node; |
4 | 4 | |
5 | 5 | class InputObjectTypeExtensionNode extends AbstractNode implements TypeExtensionNodeInterface, |
6 | - DirectivesAwareInterface, NameAwareInterface |
|
6 | + DirectivesAwareInterface, NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use NameTrait; |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | public function toArray(): array |
22 | 22 | { |
23 | 23 | return [ |
24 | - 'kind' => $this->kind, |
|
25 | - 'name' => $this->getNameAsArray(), |
|
26 | - 'directives' => $this->getDirectivesAsArray(), |
|
27 | - 'fields' => $this->getFieldsAsArray(), |
|
28 | - 'loc' => $this->getLocationAsArray(), |
|
24 | + 'kind' => $this->kind, |
|
25 | + 'name' => $this->getNameAsArray(), |
|
26 | + 'directives' => $this->getDirectivesAsArray(), |
|
27 | + 'fields' => $this->getFieldsAsArray(), |
|
28 | + 'loc' => $this->getLocationAsArray(), |
|
29 | 29 | ]; |
30 | 30 | } |
31 | 31 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | namespace Digia\GraphQL\Language\Node; |
4 | 4 | |
5 | 5 | class FragmentDefinitionNode extends AbstractNode implements ExecutableDefinitionNodeInterface, |
6 | - DirectivesAwareInterface, NameAwareInterface |
|
6 | + DirectivesAwareInterface, NameAwareInterface |
|
7 | 7 | { |
8 | 8 | |
9 | 9 | use NameTrait; |
@@ -18,9 +18,9 @@ |
||
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 | } |
@@ -42,9 +42,9 @@ |
||
42 | 42 | public function toArray(): array |
43 | 43 | { |
44 | 44 | return [ |
45 | - 'kind' => $this->kind, |
|
46 | - 'loc' => $this->getLocationAsArray(), |
|
47 | - 'selections' => $this->getSelectionsAsArray(), |
|
45 | + 'kind' => $this->kind, |
|
46 | + 'loc' => $this->getLocationAsArray(), |
|
47 | + 'selections' => $this->getSelectionsAsArray(), |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |