Code Duplication    Length = 19-19 lines in 3 locations

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

@@ 1162-1180 (lines=19) @@
1159
        return $this->redirect()->toUrl($redirect);
1160
    }
1161
1162
    public function checkTokenAction()
1163
    {
1164
        $viewModel = $this->forward()->dispatch(
1165
            'playgrounduser_user',
1166
            array(
1167
                'controller' => 'playgrounduser_user',
1168
                'action' => 'check-token',
1169
                'id' => $this->game->getIdentifier(),
1170
                'token' => $this->params()->fromRoute('token', null)
1171
            )
1172
        );
1173
1174
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1175
            $this->layout()->setVariables(array('game' => $this->game));
1176
            $viewModel->setVariables(array('game' => $this->game));
1177
        }
1178
1179
        return $viewModel;
1180
    }
1181
1182
    public function userProfileAction()
1183
    {
@@ 1241-1259 (lines=19) @@
1238
        return $view;
1239
    }
1240
1241
    public function cmsPageAction()
1242
    {
1243
        $viewModel = $this->forward()->dispatch(
1244
            'playgroundcms',
1245
            array(
1246
                'controller' => 'playgroundcms',
1247
                'action'     => 'index',
1248
                'id'         => $this->game->getIdentifier(),
1249
                'pid'        => $this->getEvent()->getRouteMatch()->getParam('pid')
1250
            )
1251
        );
1252
1253
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1254
            $this->layout()->setVariables(array('game' => $this->game));
1255
            $viewModel->setVariables(array('game'      => $this->game));
1256
        }
1257
1258
        return $viewModel;
1259
    }
1260
1261
    public function cmsListAction()
1262
    {
@@ 1261-1279 (lines=19) @@
1258
        return $viewModel;
1259
    }
1260
1261
    public function cmsListAction()
1262
    {
1263
        $viewModel = $this->forward()->dispatch(
1264
            'playgroundcms',
1265
            array(
1266
                'controller' => 'playgroundcms',
1267
                'action'     => 'list',
1268
                'id'         => $this->game->getIdentifier(),
1269
                'category'   => $this->game->getIdentifier()
1270
            )
1271
        );
1272
1273
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1274
            $this->layout()->setVariables(array('game' => $this->game));
1275
            $viewModel->setVariables(array('game'      => $this->game));
1276
        }
1277
1278
        return $viewModel;
1279
    }
1280
1281
    /**
1282
     *