Code Duplication    Length = 17-21 lines in 2 locations

src/DependencyInjection/Configuration.php 2 locations

@@ 54-70 (lines=17) @@
51
     *
52
     * @return ArrayNodeDefinition
53
     */
54
    private function addSessionSupportSection()
55
    {
56
        $tree = new TreeBuilder();
57
        $node = $tree->root('session');
58
59
        $node
60
            ->canBeEnabled()
61
            ->addDefaultsIfNotSet()
62
            ->children()
63
                ->scalarNode('service_id')->isRequired()->end()
64
                ->booleanNode('use_tagging')->defaultTrue()->end()
65
                ->scalarNode('prefix')->defaultValue('session_')->end()
66
                ->scalarNode('ttl')->end()
67
            ->end();
68
69
        return $node;
70
    }
71
72
    /**
73
     * Configure the "cache.serializer" section.
@@ 219-239 (lines=21) @@
216
     *
217
     * @return ArrayNodeDefinition
218
     */
219
    private function addRouterSection()
220
    {
221
        $tree = new TreeBuilder();
222
        $node = $tree->root('router');
223
224
        $node
225
            ->canBeEnabled()
226
            ->addDefaultsIfNotSet()
227
            ->children()
228
                ->integerNode('ttl')
229
                    ->defaultValue(604800)
230
                ->end()
231
                ->scalarNode('service_id')
232
                    ->isRequired()
233
                ->end()
234
                ->booleanNode('use_tagging')->defaultTrue()->end()
235
                ->scalarNode('prefix')->defaultValue('')->end()
236
            ->end();
237
238
        return $node;
239
    }
240
241
    /**
242
     * @return ArrayNodeDefinition