Code Duplication    Length = 6-6 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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