@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @return ClassAwareDefinitionInterface |
35 | 35 | */ |
36 | - public function setClass(?string $class): ClassAwareDefinitionInterface |
|
36 | + public function setClass(?string $class) : ClassAwareDefinitionInterface |
|
37 | 37 | { |
38 | 38 | $this->class = $class; |
39 | 39 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @return DefinitionInterface |
40 | 40 | */ |
41 | - public function setName(?string $name): DefinitionInterface |
|
41 | + public function setName(?string $name) : DefinitionInterface |
|
42 | 42 | { |
43 | 43 | $this->name = $name; |
44 | 44 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @return DefinitionInterface |
60 | 60 | */ |
61 | - public function setDescription(?string $description): DefinitionInterface |
|
61 | + public function setDescription(?string $description) : DefinitionInterface |
|
62 | 62 | { |
63 | 63 | $this->description = $description; |
64 | 64 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @return DefinitionInterface |
27 | 27 | */ |
28 | - public function setName(?string $name): DefinitionInterface; |
|
28 | + public function setName(?string $name) : DefinitionInterface; |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @return string |
@@ -37,5 +37,5 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @return DefinitionInterface |
39 | 39 | */ |
40 | - public function setDescription(?string $description): DefinitionInterface; |
|
40 | + public function setDescription(?string $description) : DefinitionInterface; |
|
41 | 41 | } |
@@ -161,7 +161,7 @@ |
||
161 | 161 | * |
162 | 162 | * @return ArgumentDefinition |
163 | 163 | */ |
164 | - public function setInternalName(?string $internalName): ArgumentDefinition |
|
164 | + public function setInternalName(?string $internalName) : ArgumentDefinition |
|
165 | 165 | { |
166 | 166 | $this->internalName = $internalName; |
167 | 167 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | $config = [ |
70 | 70 | 'types' => Types::all(), |
71 | - 'typeLoader' => function ($name) { |
|
71 | + 'typeLoader' => function($name) { |
|
72 | 72 | return Types::get($name); |
73 | 73 | }, |
74 | 74 | ]; |
@@ -46,25 +46,25 @@ discard block |
||
46 | 46 | { |
47 | 47 | $pagination = $root->arrayNode('pagination')->addDefaultsIfNotSet()->children(); |
48 | 48 | $pagination->integerNode('limit') |
49 | - ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
49 | + ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | protected function configureExtensionNamespace(NodeBuilder $root) |
53 | 53 | { |
54 | 54 | $namespaces = $root->arrayNode('namespaces') |
55 | - ->info( |
|
56 | - 'Group GraphQL schema using namespaced schemas. |
|
55 | + ->info( |
|
56 | + 'Group GraphQL schema using namespaced schemas. |
|
57 | 57 | On large schemas is helpful to keep schemas grouped by bundle and node' |
58 | - ) |
|
59 | - ->canBeDisabled() |
|
60 | - ->addDefaultsIfNotSet() |
|
61 | - ->children(); |
|
58 | + ) |
|
59 | + ->canBeDisabled() |
|
60 | + ->addDefaultsIfNotSet() |
|
61 | + ->children(); |
|
62 | 62 | |
63 | 63 | $bundles = $namespaces->arrayNode('bundles') |
64 | - ->info('Group each bundle into a separate schema definition') |
|
65 | - ->canBeDisabled() |
|
66 | - ->addDefaultsIfNotSet() |
|
67 | - ->children(); |
|
64 | + ->info('Group each bundle into a separate schema definition') |
|
65 | + ->canBeDisabled() |
|
66 | + ->addDefaultsIfNotSet() |
|
67 | + ->children(); |
|
68 | 68 | |
69 | 69 | $bundles->scalarNode('suffix') |
70 | 70 | ->info('The following suffix will be used for bundle groups') |
@@ -91,24 +91,24 @@ discard block |
||
91 | 91 | ->children(); |
92 | 92 | |
93 | 93 | $nodes->scalarNode('query_suffix') |
94 | - ->info('The following suffix will be used to create the name for queries to the same node') |
|
95 | - ->defaultValue('Query'); |
|
94 | + ->info('The following suffix will be used to create the name for queries to the same node') |
|
95 | + ->defaultValue('Query'); |
|
96 | 96 | |
97 | 97 | $nodes->scalarNode('mutation_suffix') |
98 | - ->info('The following suffix will be used to create the name for mutations to the same node') |
|
99 | - ->defaultValue('Mutation'); |
|
98 | + ->info('The following suffix will be used to create the name for mutations to the same node') |
|
99 | + ->defaultValue('Mutation'); |
|
100 | 100 | |
101 | 101 | $nodes->variableNode('ignore') |
102 | - ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
103 | - ->defaultValue(['Node']); |
|
102 | + ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
103 | + ->defaultValue(['Node']); |
|
104 | 104 | |
105 | 105 | $nodes->arrayNode('aliases') |
106 | - ->info( |
|
107 | - 'Define aliases for nodes to set definitions inside other desired node name. |
|
106 | + ->info( |
|
107 | + 'Define aliases for nodes to set definitions inside other desired node name. |
|
108 | 108 | Can be used to group multiple nodes or publish a node with a different group name' |
109 | - ) |
|
110 | - ->example('InvoiceItem: Invoice') |
|
111 | - ->useAttributeAsKey('name') |
|
112 | - ->prototype('scalar'); |
|
109 | + ) |
|
110 | + ->example('InvoiceItem: Invoice') |
|
111 | + ->useAttributeAsKey('name') |
|
112 | + ->prototype('scalar'); |
|
113 | 113 | } |
114 | 114 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * @return mixed |
27 | 27 | */ |
28 | - public function getNode():?string |
|
28 | + public function getNode(): ?string |
|
29 | 29 | { |
30 | 30 | return $this->node; |
31 | 31 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return NodeAwareDefinitionInterface |
37 | 37 | */ |
38 | - public function setNode(?string $node): NodeAwareDefinitionInterface |
|
38 | + public function setNode(?string $node) : NodeAwareDefinitionInterface |
|
39 | 39 | { |
40 | 40 | $this->node = $node; |
41 | 41 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * {@inheritDoc} |
51 | 51 | */ |
52 | - public function setNode(?string $node): NodeAwareDefinitionInterface |
|
52 | + public function setNode(?string $node) : NodeAwareDefinitionInterface |
|
53 | 53 | { |
54 | 54 | $this->setClass($node); |
55 | 55 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @return NodeAwareDefinitionInterface |
22 | 22 | */ |
23 | - public function setNode(?string $node): NodeAwareDefinitionInterface; |
|
23 | + public function setNode(?string $node) : NodeAwareDefinitionInterface; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @return null|string |