@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $graphiql = $root->arrayNode('graphiql')->addDefaultsIfNotSet()->children(); |
44 | 44 | |
45 | 45 | $graphiql->scalarNode('title') |
46 | - ->defaultValue('GraphQL API Explorer'); |
|
46 | + ->defaultValue('GraphQL API Explorer'); |
|
47 | 47 | |
48 | 48 | $graphiql |
49 | 49 | ->scalarNode('data_warning_message') |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $graphiql->enumNode('data_warning_style')->values(['info', 'warning', 'danger'])->defaultValue('danger'); |
53 | 53 | |
54 | 54 | $graphiql->scalarNode('template') |
55 | - ->defaultValue('@YnloGraphQL/explorer.twig'); |
|
55 | + ->defaultValue('@YnloGraphQL/explorer.twig'); |
|
56 | 56 | |
57 | 57 | $authentication = $graphiql->arrayNode('authentication')->addDefaultsIfNotSet()->children(); |
58 | 58 | $authentication |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ->defaultFalse(); |
65 | 65 | |
66 | 66 | $authentication->scalarNode('login_message') |
67 | - ->defaultValue('Start exploring GraphQL API queries using your account’s data now.'); |
|
67 | + ->defaultValue('Start exploring GraphQL API queries using your account’s data now.'); |
|
68 | 68 | |
69 | 69 | $authenticationProvider = $authentication->arrayNode('provider')->children(); |
70 | 70 | |
@@ -73,23 +73,23 @@ discard block |
||
73 | 73 | $jwtLogin = $jwt->arrayNode('login')->children(); |
74 | 74 | |
75 | 75 | $jwtLogin->scalarNode('url') |
76 | - ->info('Route name or URI to make the login process to retrieve the token.') |
|
77 | - ->isRequired(); |
|
76 | + ->info('Route name or URI to make the login process to retrieve the token.') |
|
77 | + ->isRequired(); |
|
78 | 78 | |
79 | 79 | $jwtLogin->scalarNode('username_parameter') |
80 | - ->defaultValue('username'); |
|
80 | + ->defaultValue('username'); |
|
81 | 81 | |
82 | 82 | $jwtLogin->scalarNode('password_parameter') |
83 | - ->defaultValue('password'); |
|
83 | + ->defaultValue('password'); |
|
84 | 84 | |
85 | 85 | $jwtLogin->enumNode('parameters_in') |
86 | - ->values(['form', 'query', 'header']) |
|
87 | - ->info('How pass parameters to request the token') |
|
88 | - ->defaultValue('form'); |
|
86 | + ->values(['form', 'query', 'header']) |
|
87 | + ->info('How pass parameters to request the token') |
|
88 | + ->defaultValue('form'); |
|
89 | 89 | |
90 | 90 | $jwtLogin->scalarNode('response_token_path') |
91 | - ->defaultValue('token') |
|
92 | - ->info('Where the token should be located in the response in case of JSON, set null if the response is the token.'); |
|
91 | + ->defaultValue('token') |
|
92 | + ->info('Where the token should be located in the response in case of JSON, set null if the response is the token.'); |
|
93 | 93 | |
94 | 94 | $jwtRequests = $jwt->arrayNode('requests')->addDefaultsIfNotSet()->children(); |
95 | 95 | |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | ->info('Customize how the token should be send, use the place holder {token} to replace for current token'); |
108 | 108 | |
109 | 109 | $authenticationProvider->scalarNode('custom') |
110 | - ->defaultNull() |
|
111 | - ->info('Configure custom service to use as authentication provider'); |
|
110 | + ->defaultNull() |
|
111 | + ->info('Configure custom service to use as authentication provider'); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | protected function configureCORS(NodeBuilder $root) |
@@ -134,25 +134,25 @@ discard block |
||
134 | 134 | { |
135 | 135 | $pagination = $root->arrayNode('pagination')->addDefaultsIfNotSet()->children(); |
136 | 136 | $pagination->integerNode('limit') |
137 | - ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
137 | + ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | protected function configureExtensionNamespace(NodeBuilder $root) |
141 | 141 | { |
142 | 142 | $namespaces = $root->arrayNode('namespaces') |
143 | - ->info( |
|
144 | - 'Group GraphQL schema using namespaced schemas. |
|
143 | + ->info( |
|
144 | + 'Group GraphQL schema using namespaced schemas. |
|
145 | 145 | On large schemas is helpful to keep schemas grouped by bundle and node' |
146 | - ) |
|
147 | - ->canBeEnabled() |
|
148 | - ->addDefaultsIfNotSet() |
|
149 | - ->children(); |
|
146 | + ) |
|
147 | + ->canBeEnabled() |
|
148 | + ->addDefaultsIfNotSet() |
|
149 | + ->children(); |
|
150 | 150 | |
151 | 151 | $bundles = $namespaces->arrayNode('bundles') |
152 | - ->info('Group each bundle into a separate schema definition') |
|
153 | - ->canBeDisabled() |
|
154 | - ->addDefaultsIfNotSet() |
|
155 | - ->children(); |
|
152 | + ->info('Group each bundle into a separate schema definition') |
|
153 | + ->canBeDisabled() |
|
154 | + ->addDefaultsIfNotSet() |
|
155 | + ->children(); |
|
156 | 156 | |
157 | 157 | $bundles->scalarNode('query_suffix') |
158 | 158 | ->info('The following suffix will be used for bundle query groups') |
@@ -183,25 +183,25 @@ discard block |
||
183 | 183 | ->children(); |
184 | 184 | |
185 | 185 | $nodes->scalarNode('query_suffix') |
186 | - ->info('The following suffix will be used to create the name for queries to the same node') |
|
187 | - ->defaultValue('Query'); |
|
186 | + ->info('The following suffix will be used to create the name for queries to the same node') |
|
187 | + ->defaultValue('Query'); |
|
188 | 188 | |
189 | 189 | $nodes->scalarNode('mutation_suffix') |
190 | - ->info('The following suffix will be used to create the name for mutations to the same node') |
|
191 | - ->defaultValue('Mutation'); |
|
190 | + ->info('The following suffix will be used to create the name for mutations to the same node') |
|
191 | + ->defaultValue('Mutation'); |
|
192 | 192 | |
193 | 193 | $nodes->variableNode('ignore') |
194 | - ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
195 | - ->defaultValue(['Node']); |
|
194 | + ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
195 | + ->defaultValue(['Node']); |
|
196 | 196 | |
197 | 197 | $nodes->arrayNode('aliases') |
198 | - ->info( |
|
199 | - 'Define aliases for nodes to set definitions inside other desired node name. |
|
198 | + ->info( |
|
199 | + 'Define aliases for nodes to set definitions inside other desired node name. |
|
200 | 200 | Can be used to group multiple nodes or publish a node with a different group name' |
201 | - ) |
|
202 | - ->example('InvoiceItem: Invoice') |
|
203 | - ->useAttributeAsKey('name') |
|
204 | - ->prototype('scalar'); |
|
201 | + ) |
|
202 | + ->example('InvoiceItem: Invoice') |
|
203 | + ->useAttributeAsKey('name') |
|
204 | + ->prototype('scalar'); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | private function configureSecurity(NodeBuilder $rootNode) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | if (is_numeric($complexity)) { |
56 | - return function ($childrenComplexity) use ($complexity) { |
|
56 | + return function($childrenComplexity) use ($complexity) { |
|
57 | 57 | return $childrenComplexity + $complexity; |
58 | 58 | }; |
59 | 59 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $el = new ExpressionLanguage(); |
67 | 67 | |
68 | - return function ($childrenComplexity, $args) use ($el, $complexity) { |
|
68 | + return function($childrenComplexity, $args) use ($el, $complexity) { |
|
69 | 69 | return $el->evaluate($complexity, array_merge($args, ['children_complexity' => $childrenComplexity])); |
70 | 70 | }; |
71 | 71 | } |