Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 47-52 (lines=6) @@
44
                ->arrayNode('access_denied_listener')
45
                    ->canBeEnabled()
46
                    ->beforeNormalization()
47
                        ->ifArray()->then(function ($v) { if (!empty($v) && empty($v['formats'])) {
48
     unset($v['enabled']);
49
     $v = ['enabled' => true, 'formats' => $v];
50
 }
51
52
return $v; })
53
                    ->end()
54
                    ->fixXmlConfig('format', 'formats')
55
                    ->children()
@@ 173-178 (lines=6) @@
170
                        ->arrayNode('mime_types')
171
                            ->canBeEnabled()
172
                            ->beforeNormalization()
173
                                ->ifArray()->then(function ($v) {
174
                                    if (!empty($v) && empty($v['formats'])) {
175
                                        unset($v['enabled']);
176
                                        $v = ['enabled' => true, 'formats' => $v];
177
                                    }
178
179
                                    return $v;
180
                                })
181
                            ->end()