Completed
Push — master ( 8e3b13...e5ed6d )
by Rafael
07:59
created
src/Definition/DeprecateInterface.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
      * @return string
28 28
      */
29
-    public function getDeprecationReason():?string;
29
+    public function getDeprecationReason(): ?string;
30 30
 
31 31
     /**
32 32
      * @return bool
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $graphiql = $root->arrayNode('graphiql')->addDefaultsIfNotSet()->children();
41 41
 
42 42
         $graphiql->scalarNode('title')
43
-                 ->defaultValue('GraphQL API Explorer');
43
+                    ->defaultValue('GraphQL API Explorer');
44 44
 
45 45
         $graphiql
46 46
             ->scalarNode('data_warning_message')
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $graphiql->enumNode('data_warning_style')->values(['info', 'warning', 'danger'])->defaultValue('danger');
50 50
 
51 51
         $graphiql->scalarNode('template')
52
-                 ->defaultValue('@YnloGraphQL/explorer.twig');
52
+                    ->defaultValue('@YnloGraphQL/explorer.twig');
53 53
 
54 54
         $authentication = $graphiql->arrayNode('authentication')->addDefaultsIfNotSet()->children();
55 55
         $authentication
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             ->defaultFalse();
62 62
 
63 63
         $authentication->scalarNode('login_message')
64
-                       ->defaultValue('Start exploring GraphQL API queries using your account’s data now.');
64
+                        ->defaultValue('Start exploring GraphQL API queries using your account’s data now.');
65 65
 
66 66
         $authenticationProvider = $authentication->arrayNode('provider')->children();
67 67
 
@@ -70,23 +70,23 @@  discard block
 block discarded – undo
70 70
         $jwtLogin = $jwt->arrayNode('login')->children();
71 71
 
72 72
         $jwtLogin->scalarNode('url')
73
-                 ->info('Route name or URI to make the login process to retrieve the token.')
74
-                 ->isRequired();
73
+                    ->info('Route name or URI to make the login process to retrieve the token.')
74
+                    ->isRequired();
75 75
 
76 76
         $jwtLogin->scalarNode('username_parameter')
77
-                 ->defaultValue('username');
77
+                    ->defaultValue('username');
78 78
 
79 79
         $jwtLogin->scalarNode('password_parameter')
80
-                 ->defaultValue('password');
80
+                    ->defaultValue('password');
81 81
 
82 82
         $jwtLogin->enumNode('parameters_in')
83
-                 ->values(['form', 'query', 'header'])
84
-                 ->info('How pass parameters to request the token')
85
-                 ->defaultValue('form');
83
+                    ->values(['form', 'query', 'header'])
84
+                    ->info('How pass parameters to request the token')
85
+                    ->defaultValue('form');
86 86
 
87 87
         $jwtLogin->scalarNode('response_token_path')
88
-                 ->defaultValue('token')
89
-                 ->info('Where the token should be located in the response in case of JSON, set null if the response is the token.');
88
+                    ->defaultValue('token')
89
+                    ->info('Where the token should be located in the response in case of JSON, set null if the response is the token.');
90 90
 
91 91
         $jwtRequests = $jwt->arrayNode('requests')->addDefaultsIfNotSet()->children();
92 92
 
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
                     ->info('Customize how the token should be send,  use the place holder {token} to replace for current token');
105 105
 
106 106
         $authenticationProvider->scalarNode('custom')
107
-                               ->defaultNull()
108
-                               ->info('Configure custom service to use as authentication provider');
107
+                                ->defaultNull()
108
+                                ->info('Configure custom service to use as authentication provider');
109 109
     }
110 110
 
111 111
     protected function configureCORS(NodeBuilder $root)
@@ -131,25 +131,25 @@  discard block
 block discarded – undo
131 131
     {
132 132
         $pagination = $root->arrayNode('pagination')->addDefaultsIfNotSet()->children();
133 133
         $pagination->integerNode('limit')
134
-                   ->defaultValue(100)->info('Maximum limit allowed for all paginations');
134
+                    ->defaultValue(100)->info('Maximum limit allowed for all paginations');
135 135
     }
136 136
 
137 137
     protected function configureExtensionNamespace(NodeBuilder $root)
138 138
     {
139 139
         $namespaces = $root->arrayNode('namespaces')
140
-                           ->info(
141
-                               'Group GraphQL schema using namespaced schemas. 
140
+                            ->info(
141
+                                'Group GraphQL schema using namespaced schemas. 
142 142
 On large schemas is  helpful to keep schemas grouped by bundle and node'
143
-                           )
144
-                           ->canBeEnabled()
145
-                           ->addDefaultsIfNotSet()
146
-                           ->children();
143
+                            )
144
+                            ->canBeEnabled()
145
+                            ->addDefaultsIfNotSet()
146
+                            ->children();
147 147
 
148 148
         $bundles = $namespaces->arrayNode('bundles')
149
-                              ->info('Group each bundle into a separate schema definition')
150
-                              ->canBeDisabled()
151
-                              ->addDefaultsIfNotSet()
152
-                              ->children();
149
+                                ->info('Group each bundle into a separate schema definition')
150
+                                ->canBeDisabled()
151
+                                ->addDefaultsIfNotSet()
152
+                                ->children();
153 153
 
154 154
         $bundles->scalarNode('query_suffix')
155 155
                 ->info('The following suffix will be used for bundle query groups')
@@ -180,24 +180,24 @@  discard block
 block discarded – undo
180 180
                             ->children();
181 181
 
182 182
         $nodes->scalarNode('query_suffix')
183
-              ->info('The following suffix will be used to create the name for queries to the same node')
184
-              ->defaultValue('Query');
183
+                ->info('The following suffix will be used to create the name for queries to the same node')
184
+                ->defaultValue('Query');
185 185
 
186 186
         $nodes->scalarNode('mutation_suffix')
187
-              ->info('The following suffix will be used to create the name for mutations to the same node')
188
-              ->defaultValue('Mutation');
187
+                ->info('The following suffix will be used to create the name for mutations to the same node')
188
+                ->defaultValue('Mutation');
189 189
 
190 190
         $nodes->variableNode('ignore')
191
-              ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation')
192
-              ->defaultValue(['Node']);
191
+                ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation')
192
+                ->defaultValue(['Node']);
193 193
 
194 194
         $nodes->arrayNode('aliases')
195
-              ->info(
196
-                  'Define aliases for nodes to set definitions inside other desired node name. 
195
+                ->info(
196
+                    'Define aliases for nodes to set definitions inside other desired node name. 
197 197
 Can be used to group multiple nodes or publish a node with a different group name'
198
-              )
199
-              ->example('InvoiceItem: Invoice')
200
-              ->useAttributeAsKey('name')
201
-              ->prototype('scalar');
198
+                )
199
+                ->example('InvoiceItem: Invoice')
200
+                ->useAttributeAsKey('name')
201
+                ->prototype('scalar');
202 202
     }
203 203
 }
Please login to merge, or discard this patch.