Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 294-306 (lines=13) @@
291
    /**
292
     * Returns the array node used for "_id".
293
     */
294
    protected function getIdNode()
295
    {
296
        $builder = new TreeBuilder();
297
        $node = $builder->root('_id');
298
299
        $node
300
            ->children()
301
            ->scalarNode('path')->end()
302
            ->end()
303
        ;
304
305
        return $node;
306
    }
307
308
    /**
309
     * Returns the array node used for "_source".
@@ 338-351 (lines=14) @@
335
    /**
336
     * Returns the array node used for "_routing".
337
     */
338
    protected function getRoutingNode()
339
    {
340
        $builder = new TreeBuilder();
341
        $node = $builder->root('_routing');
342
343
        $node
344
            ->children()
345
                ->scalarNode('required')->end()
346
                ->scalarNode('path')->end()
347
            ->end()
348
        ;
349
350
        return $node;
351
    }
352
353
    /**
354
     * Returns the array node used for "_parent".