Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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