Code Duplication    Length = 13-14 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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