Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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