Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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