Code Duplication    Length = 19-19 lines in 3 locations

src/Controller/Frontend/GameController.php 3 locations

@@ 1201-1219 (lines=19) @@
1198
        return $this->redirect()->toUrl($redirect);
1199
    }
1200
1201
    public function checkTokenAction()
1202
    {
1203
        $viewModel = $this->forward()->dispatch(
1204
            'playgrounduser_user',
1205
            array(
1206
                'controller' => 'playgrounduser_user',
1207
                'action' => 'check-token',
1208
                'id' => $this->game->getIdentifier(),
1209
                'token' => $this->params()->fromRoute('token', null)
1210
            )
1211
        );
1212
1213
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1214
            $this->layout()->setVariables(array('game' => $this->game));
1215
            $viewModel->setVariables(array('game' => $this->game));
1216
        }
1217
1218
        return $viewModel;
1219
    }
1220
1221
    public function userProfileAction()
1222
    {
@@ 1280-1298 (lines=19) @@
1277
        return $view;
1278
    }
1279
1280
    public function cmsPageAction()
1281
    {
1282
        $viewModel = $this->forward()->dispatch(
1283
            'playgroundcms',
1284
            array(
1285
                'controller' => 'playgroundcms',
1286
                'action'     => 'index',
1287
                'id'         => $this->game->getIdentifier(),
1288
                'pid'        => $this->getEvent()->getRouteMatch()->getParam('pid')
1289
            )
1290
        );
1291
1292
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1293
            $this->layout()->setVariables(array('game' => $this->game));
1294
            $viewModel->setVariables(array('game'      => $this->game));
1295
        }
1296
1297
        return $viewModel;
1298
    }
1299
1300
    public function cmsListAction()
1301
    {
@@ 1300-1318 (lines=19) @@
1297
        return $viewModel;
1298
    }
1299
1300
    public function cmsListAction()
1301
    {
1302
        $viewModel = $this->forward()->dispatch(
1303
            'playgroundcms',
1304
            array(
1305
                'controller' => 'playgroundcms',
1306
                'action'     => 'list',
1307
                'id'         => $this->game->getIdentifier(),
1308
                'category'   => $this->game->getIdentifier()
1309
            )
1310
        );
1311
1312
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1313
            $this->layout()->setVariables(array('game' => $this->game));
1314
            $viewModel->setVariables(array('game'      => $this->game));
1315
        }
1316
1317
        return $viewModel;
1318
    }
1319
1320
    /**
1321
     * This method create the basic Game view