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) { if (!empty($v) && empty($v['formats'])) {
174
     unset($v['enabled']);
175
     $v = ['enabled' => true, 'formats' => $v];
176
 }
177
178
return $v; })
179
                            ->end()
180
                            ->fixXmlConfig('format', 'formats')
181
                            ->children()