Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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