Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 62-69 (lines=8) @@
59
                ->arrayNode('access_denied_listener')
60
                    ->canBeEnabled()
61
                    ->beforeNormalization()
62
                        ->ifArray()->then(function ($v) {
63
                            if (!empty($v) && empty($v['formats'])) {
64
                                unset($v['enabled']);
65
                                $v = ['enabled' => true, 'formats' => $v];
66
                            }
67
68
                            return $v;
69
                        })
70
                    ->end()
71
                    ->fixXmlConfig('format', 'formats')
72
                    ->children()
@@ 238-245 (lines=8) @@
235
                        ->arrayNode('mime_types')
236
                            ->canBeEnabled()
237
                            ->beforeNormalization()
238
                                ->ifArray()->then(function ($v) {
239
                                    if (!empty($v) && empty($v['formats'])) {
240
                                        unset($v['enabled']);
241
                                        $v = ['enabled' => true, 'formats' => $v];
242
                                    }
243
244
                                    return $v;
245
                                })
246
                            ->end()
247
                            ->fixXmlConfig('format', 'formats')
248
                            ->children()