Code Duplication    Length = 8-8 lines in 2 locations

Controller/AbstractFOSRestController.php 1 location

@@ 29-36 (lines=8) @@
26
     *
27
     * @return ViewHandlerInterface
28
     */
29
    protected function getViewHandler()
30
    {
31
        if (!$this->viewhandler instanceof ViewHandlerInterface) {
32
            $this->viewhandler = $this->container->get('fos_rest.view_handler');
33
        }
34
35
        return $this->viewhandler;
36
    }
37
38
    /**
39
     * {@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