Code Duplication    Length = 8-8 lines in 2 locations

Controller/AbstractFOSRestController.php 1 location

@@ 27-34 (lines=8) @@
24
    /**
25
     * @return ViewHandlerInterface
26
     */
27
    protected function getViewHandler()
28
    {
29
        if (!$this->viewhandler instanceof ViewHandlerInterface) {
30
            $this->viewhandler = $this->container->get('fos_rest.view_handler');
31
        }
32
33
        return $this->viewhandler;
34
    }
35
36
    /**
37
     * {@inheritdoc}

Controller/FOSRestController.php 1 location

@@ 33-40 (lines=8) @@
30
     *
31
     * @return ViewHandlerInterface
32
     */
33
    protected function getViewHandler()
34
    {
35
        if (!$this->viewhandler instanceof ViewHandlerInterface) {
36
            $this->viewhandler = $this->container->get('fos_rest.view_handler');
37
        }
38
39
        return $this->viewhandler;
40
    }
41
}
42