Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 332-344 (lines=13) @@
329
    /**
330
     * Returns the array node used for "_id".
331
     */
332
    protected function getIdNode()
333
    {
334
        $builder = new TreeBuilder();
335
        $node = $builder->root('_id');
336
337
        $node
338
            ->children()
339
            ->scalarNode('path')->end()
340
            ->end()
341
        ;
342
343
        return $node;
344
    }
345
346
    /**
347
     * Returns the array node used for "_source".
@@ 394-407 (lines=14) @@
391
    /**
392
     * Returns the array node used for "_routing".
393
     */
394
    protected function getRoutingNode()
395
    {
396
        $builder = new TreeBuilder();
397
        $node = $builder->root('_routing');
398
399
        $node
400
            ->children()
401
                ->scalarNode('required')->end()
402
                ->scalarNode('path')->end()
403
            ->end()
404
        ;
405
406
        return $node;
407
    }
408
409
    /**
410
     * Returns the array node used for "_parent".