Code Duplication    Length = 13-14 lines in 3 locations

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

@@ 257-270 (lines=14) @@
254
    /**
255
     * This action takes care of the terms of the game
256
     */
257
    public function termsAction()
258
    {
259
        $identifier = $this->getEvent()->getRouteMatch()->getParam('id');
260
        $sg = $this->getGameService();
261
262
        $game = $sg->checkGame($identifier, false);
263
        if (!$game) {
264
            return $this->notFoundAction();
265
        }
266
267
        $viewModel = $this->buildView($game);
268
269
        return $viewModel;
270
    }
271
272
    /**
273
     * This action takes care of the conditions of the game
@@ 275-288 (lines=14) @@
272
    /**
273
     * This action takes care of the conditions of the game
274
     */
275
    public function conditionsAction()
276
    {
277
        $identifier = $this->getEvent()->getRouteMatch()->getParam('id');
278
        $sg = $this->getGameService();
279
280
        $game = $sg->checkGame($identifier, false);
281
        if (!$game) {
282
            return $this->notFoundAction();
283
        }
284
285
        $viewModel = $this->buildView($game);
286
287
        return $viewModel;
288
    }
289
290
    /**
291
     * This action takes care of bounce page of the game
@@ 690-702 (lines=13) @@
687
        );
688
    }
689
690
    public function fangateAction()
691
    {
692
        $identifier = $this->getEvent()->getRouteMatch()->getParam('id');
693
        $sg = $this->getGameService();
694
        $game = $sg->checkGame($identifier, false);
695
        if (!$game) {
696
            return $this->notFoundAction();
697
        }
698
699
        $viewModel = $this->buildView($game);
700
701
        return $viewModel;
702
    }
703
    
704
    public function shareAction()
705
    {