Code Duplication    Length = 16-17 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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