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()
@@ 172-177 (lines=6) @@
169
                        ->arrayNode('mime_types')
170
                            ->canBeEnabled()
171
                            ->beforeNormalization()
172
                                ->ifArray()->then(function ($v) {
173
                                    if (!empty($v) && empty($v['formats'])) {
174
                                        unset($v['enabled']);
175
                                        $v = ['enabled' => true, 'formats' => $v];
176
                                    }
177
178
                                    return $v;
179
                                })
180
                            ->end()