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()
@@ 258-265 (lines=8) @@
255
                        ->arrayNode('mime_types')
256
                            ->canBeEnabled()
257
                            ->beforeNormalization()
258
                                ->ifArray()->then(function ($v) {
259
                                    if (!empty($v) && empty($v['formats'])) {
260
                                        unset($v['enabled']);
261
                                        $v = ['enabled' => true, 'formats' => $v];
262
                                    }
263
264
                                    return $v;
265
                                })
266
                            ->end()
267
                            ->fixXmlConfig('format', 'formats')
268
                            ->children()