Code Duplication    Length = 19-20 lines in 2 locations

src/PlaygroundGame/Controller/Frontend/GameController.php 2 locations

@@ 953-971 (lines=19) @@
950
        return $this->redirect()->toUrl($redirect);
951
    }
952
953
    public function cmsPageAction()
954
    {
955
        $viewModel = $this->forward()->dispatch(
956
            'playgroundcms',
957
            array(
958
                'controller' => 'playgroundcms',
959
                'action' => 'index',
960
                'id' => $this->game->getIdentifier(),
961
                'pid' => $this->getEvent()->getRouteMatch()->getParam('pid')
962
            )
963
        );
964
965
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
966
            $this->layout()->setVariables(array('game' => $this->game));
967
            $viewModel->setVariables(array('game' => $this->game));
968
        }
969
970
        return $viewModel;
971
    }
972
973
    public function cmsListAction()
974
    {
@@ 973-992 (lines=20) @@
970
        return $viewModel;
971
    }
972
973
    public function cmsListAction()
974
    {
975
976
        $viewModel = $this->forward()->dispatch(
977
            'playgroundcms',
978
            array(
979
                'controller' => 'playgroundcms',
980
                'action' => 'list',
981
                'id' => $this->game->getIdentifier(),
982
                'category' => $this->game->getIdentifier()
983
            )
984
        );
985
986
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
987
            $this->layout()->setVariables(array('game' => $this->game));
988
            $viewModel->setVariables(array('game' => $this->game));
989
        }
990
991
        return $viewModel;
992
    }
993
994
    /**
995
     *