Code Duplication    Length = 21-21 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 177-197 (lines=21) @@
174
175
        switch ($filterName) {
176
            case 'choice':
177
            case 'multi_choice':
178
                $node
179
                    ->children()
180
                        ->integerNode('size')
181
                            ->info('Result size to return.')
182
                        ->end()
183
                        ->arrayNode('sort')
184
                        ->children()
185
                            ->enumNode('type')
186
                                ->values(['_term', '_count'])
187
                                ->defaultValue('_term')
188
                            ->end()
189
                            ->enumNode('order')
190
                                ->values(['asc', 'desc'])
191
                                ->defaultValue('asc')
192
                            ->end()
193
                            ->arrayNode('priorities')->prototype('scalar')->end()
194
                            ->end()
195
                        ->end()
196
                    ->end();
197
                break;
198
            case 'dynamic_aggregate':
199
            case 'multi_dynamic_aggregate':
200
                $node
@@ 199-219 (lines=21) @@
196
                    ->end();
197
                break;
198
            case 'dynamic_aggregate':
199
            case 'multi_dynamic_aggregate':
200
                $node
201
                    ->children()
202
                        ->scalarNode('name_field')
203
                            ->info('Name of the field to provide the aggregated values from.')
204
                        ->end()
205
                        ->arrayNode('sort')
206
                        ->children()
207
                            ->enumNode('type')
208
                                ->values(['_term', '_count'])
209
                                ->defaultValue('_term')
210
                            ->end()
211
                            ->enumNode('order')
212
                                ->values(['asc', 'desc'])
213
                                ->defaultValue('asc')
214
                            ->end()
215
                            ->arrayNode('priorities')->prototype('scalar')->end()
216
                            ->end()
217
                        ->end()
218
                    ->end();
219
                break;
220
            case 'match':
221
                $node
222
                    ->children()