Code Duplication    Length = 19-20 lines in 2 locations

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

@@ 1127-1145 (lines=19) @@
1124
        return $view;
1125
    }
1126
1127
    public function cmsPageAction()
1128
    {
1129
        $viewModel = $this->forward()->dispatch(
1130
            'playgroundcms',
1131
            array(
1132
                'controller' => 'playgroundcms',
1133
                'action'     => 'index',
1134
                'id'         => $this->game->getIdentifier(),
1135
                'pid'        => $this->getEvent()->getRouteMatch()->getParam('pid')
1136
            )
1137
        );
1138
1139
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1140
            $this->layout()->setVariables(array('game' => $this->game));
1141
            $viewModel->setVariables(array('game'      => $this->game));
1142
        }
1143
1144
        return $viewModel;
1145
    }
1146
1147
    public function cmsListAction()
1148
    {
@@ 1147-1166 (lines=20) @@
1144
        return $viewModel;
1145
    }
1146
1147
    public function cmsListAction()
1148
    {
1149
        $viewModel = $this->forward()->dispatch(
1150
            'playgroundcms',
1151
            array(
1152
                'controller' => 'playgroundcms',
1153
                'action'     => 'list',
1154
                'id'         => $this->game->getIdentifier(),
1155
                'category'   => $this->game->getIdentifier()
1156
            )
1157
        );
1158
1159
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1160
            $this->layout()->setVariables(array('game' => $this->game));
1161
            $viewModel->setVariables(array('game'      => $this->game));
1162
        }
1163
1164
        return $viewModel;
1165
    }
1166
1167
    /**
1168
     *
1169
     * @param \PlaygroundGame\Entity\Game $game