Code Duplication    Length = 16-17 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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