Code Duplication    Length = 16-17 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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