Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 188-193 (lines=6) @@
185
                        ->arrayNode('mime_types')
186
                            ->canBeEnabled()
187
                            ->beforeNormalization()
188
                                ->ifArray()->then(function ($v) {
189
                                    if (!empty($v) && empty($v['formats'])) {
190
                                        unset($v['enabled']);
191
                                        $v = ['enabled' => true, 'formats' => $v];
192
                                    }
193
194
                                    return $v;
195
                                })
196
                            ->end()
@@ 63-68 (lines=6) @@
60
                ->arrayNode('access_denied_listener')
61
                    ->canBeEnabled()
62
                    ->beforeNormalization()
63
                        ->ifArray()->then(function ($v) { if (!empty($v) && empty($v['formats'])) {
64
     unset($v['enabled']);
65
     $v = ['enabled' => true, 'formats' => $v];
66
 }
67
68
return $v; })
69
                    ->end()
70
                    ->fixXmlConfig('format', 'formats')
71
                    ->children()