Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1495-1502 (lines=8) @@
1492
     * @param array $data
1493
     * @return \Zend\View\Model\JsonModel
1494
     */
1495
    protected function successJson($data = null)
1496
    {
1497
        $model = new JsonModel(array(
1498
                'success' => true,
1499
                'data'    => $data,
1500
            ));
1501
        return $model->setTerminal(true);
1502
    }
1503
1504
    /**
1505
     * return ajax response in json format
@@ 1510-1517 (lines=8) @@
1507
     * @param string $message
1508
     * @return \Zend\View\Model\JsonModel
1509
     */
1510
    protected function errorJson($message = null)
1511
    {
1512
        $model = new JsonModel(array(
1513
                'success' => false,
1514
                'message' => $message,
1515
            ));
1516
        return $model->setTerminal(true);
1517
    }
1518
1519
    /**
1520
     * @param string $helperName