Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 53-60 (lines=8) @@
50
                ->arrayNode('access_denied_listener')
51
                    ->canBeEnabled()
52
                    ->beforeNormalization()
53
                        ->ifArray()->then(function ($v) {
54
                            if (!empty($v) && empty($v['formats'])) {
55
                                unset($v['enabled']);
56
                                $v = ['enabled' => true, 'formats' => $v];
57
                            }
58
59
                            return $v;
60
                        })
61
                    ->end()
62
                    ->fixXmlConfig('format', 'formats')
63
                    ->children()
@@ 185-192 (lines=8) @@
182
                        ->arrayNode('mime_types')
183
                            ->canBeEnabled()
184
                            ->beforeNormalization()
185
                                ->ifArray()->then(function ($v) {
186
                                    if (!empty($v) && empty($v['formats'])) {
187
                                        unset($v['enabled']);
188
                                        $v = ['enabled' => true, 'formats' => $v];
189
                                    }
190
191
                                    return $v;
192
                                })
193
                            ->end()
194
                            ->fixXmlConfig('format', 'formats')
195
                            ->children()