Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1513-1520 (lines=8) @@
1510
     * @param array $data
1511
     * @return \Zend\View\Model\JsonModel
1512
     */
1513
    protected function successJson($data = null)
1514
    {
1515
        $model = new JsonModel(array(
1516
                'success' => true,
1517
                'data'    => $data,
1518
            ));
1519
        return $model->setTerminal(true);
1520
    }
1521
1522
    /**
1523
     * return ajax response in json format
@@ 1528-1535 (lines=8) @@
1525
     * @param string $message
1526
     * @return \Zend\View\Model\JsonModel
1527
     */
1528
    protected function errorJson($message = null)
1529
    {
1530
        $model = new JsonModel(array(
1531
                'success' => false,
1532
                'message' => $message,
1533
            ));
1534
        return $model->setTerminal(true);
1535
    }
1536
1537
    /**
1538
     * @param string $helperName