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()
@@ 239-246 (lines=8) @@
236
                        ->arrayNode('mime_types')
237
                            ->canBeEnabled()
238
                            ->beforeNormalization()
239
                                ->ifArray()->then(function ($v) {
240
                                    if (!empty($v) && empty($v['formats'])) {
241
                                        unset($v['enabled']);
242
                                        $v = ['enabled' => true, 'formats' => $v];
243
                                    }
244
245
                                    return $v;
246
                                })
247
                            ->end()
248
                            ->fixXmlConfig('format', 'formats')
249
                            ->children()