Code Duplication    Length = 15-16 lines in 3 locations

DependencyInjection/Configuration.php 3 locations

@@ 117-132 (lines=16) @@
114
        return $rootNode;
115
    }
116
117
    protected function addOrm()
118
    {
119
        $treeBuilder = new TreeBuilder();
120
        $rootNode = $treeBuilder->root('orm');
121
        $rootNode
122
            ->addDefaultsIfNotSet()
123
            ->children()
124
                ->scalarNode('entity_manager')
125
                    ->info('This only needs to be set if orm is used for any of the managers, and you do not want to use the default entity manager')
126
                    ->defaultValue('default')
127
                    ->cannotBeEmpty()
128
                ->end()
129
            ->end();
130
131
        return $rootNode;
132
    }
133
134
    protected function addOdm()
135
    {
@@ 134-149 (lines=16) @@
131
        return $rootNode;
132
    }
133
134
    protected function addOdm()
135
    {
136
        $treeBuilder = new TreeBuilder();
137
        $rootNode = $treeBuilder->root('odm');
138
        $rootNode
139
            ->addDefaultsIfNotSet()
140
            ->children()
141
                ->scalarNode('document_manager')
142
                    ->info('This only needs to be set if odm is used for any of the managers, and you do not want to use the default document manager')
143
                    ->defaultValue('default')
144
                    ->cannotBeEmpty()
145
                ->end()
146
            ->end();
147
148
        return $rootNode;
149
    }
150
151
    protected function addManager()
152
    {
@@ 272-286 (lines=15) @@
269
        return $rootNode;
270
    }
271
272
    protected function addAdmin()
273
    {
274
        $treeBuilder = new TreeBuilder();
275
        $rootNode = $treeBuilder->root('admin');
276
        $rootNode
277
            ->addDefaultsIfNotSet()
278
            ->children()
279
                ->scalarNode('chartjs')
280
                    ->defaultValue('https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.min.js')
281
                    ->info('This can be changed to say a locally hosted path or url.')->end()
282
                ->end()
283
            ->end();
284
285
        return $rootNode;
286
    }
287
288
    protected function addRedis()
289
    {