Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 66-73 (lines=8) @@
63
                ->arrayNode('access_denied_listener')
64
                    ->canBeEnabled()
65
                    ->beforeNormalization()
66
                        ->ifArray()->then(function ($v) {
67
                            if (!empty($v) && empty($v['formats'])) {
68
                                unset($v['enabled']);
69
                                $v = ['enabled' => true, 'formats' => $v];
70
                            }
71
72
                            return $v;
73
                        })
74
                    ->end()
75
                    ->fixXmlConfig('format', 'formats')
76
                    ->children()
@@ 228-235 (lines=8) @@
225
                        ->arrayNode('mime_types')
226
                            ->canBeEnabled()
227
                            ->beforeNormalization()
228
                                ->ifArray()->then(function ($v) {
229
                                    if (!empty($v) && empty($v['formats'])) {
230
                                        unset($v['enabled']);
231
                                        $v = ['enabled' => true, 'formats' => $v];
232
                                    }
233
234
                                    return $v;
235
                                })
236
                            ->end()
237
                            ->fixXmlConfig('format', 'formats')
238
                            ->children()