Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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