Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 53-60 (lines=8) @@
50
                ->arrayNode('access_denied_listener')
51
                    ->canBeEnabled()
52
                    ->beforeNormalization()
53
                        ->ifArray()->then(function ($v) {
54
                            if (!empty($v) && empty($v['formats'])) {
55
                                unset($v['enabled']);
56
                                $v = ['enabled' => true, 'formats' => $v];
57
                            }
58
59
                            return $v;
60
                        })
61
                    ->end()
62
                    ->fixXmlConfig('format', 'formats')
63
                    ->children()
@@ 216-223 (lines=8) @@
213
                        ->arrayNode('mime_types')
214
                            ->canBeEnabled()
215
                            ->beforeNormalization()
216
                                ->ifArray()->then(function ($v) {
217
                                    if (!empty($v) && empty($v['formats'])) {
218
                                        unset($v['enabled']);
219
                                        $v = ['enabled' => true, 'formats' => $v];
220
                                    }
221
222
                                    return $v;
223
                                })
224
                            ->end()
225
                            ->fixXmlConfig('format', 'formats')
226
                            ->children()