Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 217-224 (lines=8) @@
214
                        ->arrayNode('mime_types')
215
                            ->canBeEnabled()
216
                            ->beforeNormalization()
217
                                ->ifArray()->then(function ($v) {
218
                                    if (!empty($v) && empty($v['formats'])) {
219
                                        unset($v['enabled']);
220
                                        $v = ['enabled' => true, 'formats' => $v];
221
                                    }
222
223
                                    return $v;
224
                                })
225
                            ->end()
226
                            ->fixXmlConfig('format', 'formats')
227
                            ->children()
@@ 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()