Code Duplication    Length = 16-17 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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