Code Duplication    Length = 16-17 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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