Code Duplication    Length = 16-17 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 451-467 (lines=17) @@
448
    /**
449
     * Returns the array node used for "_timestamp".
450
     */
451
    protected function getTimestampNode()
452
    {
453
        $builder = new TreeBuilder();
454
        $node = $builder->root('_timestamp');
455
456
        $node
457
            ->children()
458
            ->scalarNode('enabled')->defaultValue(true)->end()
459
            ->scalarNode('path')->end()
460
            ->scalarNode('format')->end()
461
            ->scalarNode('store')->end()
462
            ->scalarNode('index')->end()
463
            ->end()
464
        ;
465
466
        return $node;
467
    }
468
469
    /**
470
     * Returns the array node used for "_ttl".
@@ 472-487 (lines=16) @@
469
    /**
470
     * Returns the array node used for "_ttl".
471
     */
472
    protected function getTtlNode()
473
    {
474
        $builder = new TreeBuilder();
475
        $node = $builder->root('_ttl');
476
477
        $node
478
            ->children()
479
            ->scalarNode('enabled')->defaultValue(true)->end()
480
            ->scalarNode('default')->end()
481
            ->scalarNode('store')->end()
482
            ->scalarNode('index')->end()
483
            ->end()
484
        ;
485
486
        return $node;
487
    }
488
489
    /**
490
     * @return ArrayNodeDefinition|\Symfony\Component\Config\Definition\Builder\NodeDefinition