Code Duplication    Length = 19-19 lines in 3 locations

src/Controller/Frontend/GameController.php 3 locations

@@ 1180-1198 (lines=19) @@
1177
        return $this->redirect()->toUrl($redirect);
1178
    }
1179
1180
    public function checkTokenAction()
1181
    {
1182
        $viewModel = $this->forward()->dispatch(
1183
            'playgrounduser_user',
1184
            array(
1185
                'controller' => 'playgrounduser_user',
1186
                'action' => 'check-token',
1187
                'id' => $this->game->getIdentifier(),
1188
                'token' => $this->params()->fromRoute('token', null)
1189
            )
1190
        );
1191
1192
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1193
            $this->layout()->setVariables(array('game' => $this->game));
1194
            $viewModel->setVariables(array('game' => $this->game));
1195
        }
1196
1197
        return $viewModel;
1198
    }
1199
1200
    public function userProfileAction()
1201
    {
@@ 1259-1277 (lines=19) @@
1256
        return $view;
1257
    }
1258
1259
    public function cmsPageAction()
1260
    {
1261
        $viewModel = $this->forward()->dispatch(
1262
            'playgroundcms',
1263
            array(
1264
                'controller' => 'playgroundcms',
1265
                'action'     => 'index',
1266
                'id'         => $this->game->getIdentifier(),
1267
                'pid'        => $this->getEvent()->getRouteMatch()->getParam('pid')
1268
            )
1269
        );
1270
1271
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1272
            $this->layout()->setVariables(array('game' => $this->game));
1273
            $viewModel->setVariables(array('game'      => $this->game));
1274
        }
1275
1276
        return $viewModel;
1277
    }
1278
1279
    public function cmsListAction()
1280
    {
@@ 1279-1297 (lines=19) @@
1276
        return $viewModel;
1277
    }
1278
1279
    public function cmsListAction()
1280
    {
1281
        $viewModel = $this->forward()->dispatch(
1282
            'playgroundcms',
1283
            array(
1284
                'controller' => 'playgroundcms',
1285
                'action'     => 'list',
1286
                'id'         => $this->game->getIdentifier(),
1287
                'category'   => $this->game->getIdentifier()
1288
            )
1289
        );
1290
1291
        if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) {
1292
            $this->layout()->setVariables(array('game' => $this->game));
1293
            $viewModel->setVariables(array('game'      => $this->game));
1294
        }
1295
1296
        return $viewModel;
1297
    }
1298
1299
    /**
1300
     *