Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 62-69 (lines=8) @@
59
                ->arrayNode('access_denied_listener')
60
                    ->canBeEnabled()
61
                    ->beforeNormalization()
62
                        ->ifArray()->then(function ($v) {
63
                            if (!empty($v) && empty($v['formats'])) {
64
                                unset($v['enabled']);
65
                                $v = ['enabled' => true, 'formats' => $v];
66
                            }
67
68
                            return $v;
69
                        })
70
                    ->end()
71
                    ->fixXmlConfig('format', 'formats')
72
                    ->children()
@@ 264-271 (lines=8) @@
261
                        ->arrayNode('mime_types')
262
                            ->canBeEnabled()
263
                            ->beforeNormalization()
264
                                ->ifArray()->then(function ($v) {
265
                                    if (!empty($v) && empty($v['formats'])) {
266
                                        unset($v['enabled']);
267
                                        $v = ['enabled' => true, 'formats' => $v];
268
                                    }
269
270
                                    return $v;
271
                                })
272
                            ->end()
273
                            ->fixXmlConfig('format', 'formats')
274
                            ->children()