Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/FOSRestExtension.php 2 locations

@@ 321-323 (lines=3) @@
318
            }
319
        }
320
321
        if (!is_numeric($config['view']['failed_validation'])) {
322
            $config['view']['failed_validation'] = constant('\Symfony\Component\HttpFoundation\Response::'.$config['view']['failed_validation']);
323
        }
324
325
        $defaultViewHandler = $container->getDefinition('fos_rest.view_handler.default');
326
        $defaultViewHandler->replaceArgument(4, $formats);
@@ 329-331 (lines=3) @@
326
        $defaultViewHandler->replaceArgument(4, $formats);
327
        $defaultViewHandler->replaceArgument(5, $config['view']['failed_validation']);
328
329
        if (!is_numeric($config['view']['empty_content'])) {
330
            $config['view']['empty_content'] = constant('\Symfony\Component\HttpFoundation\Response::'.$config['view']['empty_content']);
331
        }
332
333
        $defaultViewHandler->replaceArgument(6, $config['view']['empty_content']);
334
        $defaultViewHandler->replaceArgument(7, $config['view']['serialize_null']);