Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 63-70 (lines=8) @@
60
                    ->canBeEnabled()
61
                    ->setDeprecated('The "%path%.%node%" option is deprecated since FOSRestBundle 2.8.')
62
                    ->beforeNormalization()
63
                        ->ifArray()->then(function ($v) {
64
                            if (!empty($v) && empty($v['formats'])) {
65
                                unset($v['enabled']);
66
                                $v = ['enabled' => true, 'formats' => $v];
67
                            }
68
69
                            return $v;
70
                        })
71
                    ->end()
72
                    ->fixXmlConfig('format', 'formats')
73
                    ->children()
@@ 240-247 (lines=8) @@
237
                        ->arrayNode('mime_types')
238
                            ->canBeEnabled()
239
                            ->beforeNormalization()
240
                                ->ifArray()->then(function ($v) {
241
                                    if (!empty($v) && empty($v['formats'])) {
242
                                        unset($v['enabled']);
243
                                        $v = ['enabled' => true, 'formats' => $v];
244
                                    }
245
246
                                    return $v;
247
                                })
248
                            ->end()
249
                            ->fixXmlConfig('format', 'formats')
250
                            ->children()