Code Duplication    Length = 19-19 lines in 3 locations

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

@@ 1089-1107 (lines=19) @@
1086
        return $this->redirect()->toUrl($redirect);
1087
    }
1088
1089
    public function checkTokenAction()
1090
    {
1091
        $viewModel = $this->forward()->dispatch(
1092
            'playgrounduser_user',
1093
            array(
1094
                'controller' => 'playgrounduser_user',
1095
                'action' => 'check-token',
1096
                'id' => $this->game->getIdentifier(),
1097
                'token' => $this->params()->fromRoute('token', null)
1098
            )
1099
        );
1100
1101
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1102
            $this->layout()->setVariables(array('game' => $this->game));
1103
            $viewModel->setVariables(array('game' => $this->game));
1104
        }
1105
1106
        return $viewModel;
1107
    }
1108
1109
    public function userProfileAction()
1110
    {
@@ 1168-1186 (lines=19) @@
1165
        return $view;
1166
    }
1167
1168
    public function cmsPageAction()
1169
    {
1170
        $viewModel = $this->forward()->dispatch(
1171
            'playgroundcms',
1172
            array(
1173
                'controller' => 'playgroundcms',
1174
                'action'     => 'index',
1175
                'id'         => $this->game->getIdentifier(),
1176
                'pid'        => $this->getEvent()->getRouteMatch()->getParam('pid')
1177
            )
1178
        );
1179
1180
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1181
            $this->layout()->setVariables(array('game' => $this->game));
1182
            $viewModel->setVariables(array('game'      => $this->game));
1183
        }
1184
1185
        return $viewModel;
1186
    }
1187
1188
    public function cmsListAction()
1189
    {
@@ 1188-1206 (lines=19) @@
1185
        return $viewModel;
1186
    }
1187
1188
    public function cmsListAction()
1189
    {
1190
        $viewModel = $this->forward()->dispatch(
1191
            'playgroundcms',
1192
            array(
1193
                'controller' => 'playgroundcms',
1194
                'action'     => 'list',
1195
                'id'         => $this->game->getIdentifier(),
1196
                'category'   => $this->game->getIdentifier()
1197
            )
1198
        );
1199
1200
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1201
            $this->layout()->setVariables(array('game' => $this->game));
1202
            $viewModel->setVariables(array('game'      => $this->game));
1203
        }
1204
1205
        return $viewModel;
1206
    }
1207
1208
    /**
1209
     *