Code Duplication    Length = 8-8 lines in 2 locations

src/Controller/Frontend/GameController.php 2 locations

@@ 1592-1599 (lines=8) @@
1589
     * @param array $data
1590
     * @return \Zend\View\Model\JsonModel
1591
     */
1592
    protected function successJson($data = null)
1593
    {
1594
        $model = new JsonModel(array(
1595
                'success' => true,
1596
                'data'    => $data,
1597
            ));
1598
        return $model->setTerminal(true);
1599
    }
1600
1601
    /**
1602
     * return ajax response in json format
@@ 1607-1614 (lines=8) @@
1604
     * @param string $message
1605
     * @return \Zend\View\Model\JsonModel
1606
     */
1607
    protected function errorJson($message = null)
1608
    {
1609
        $model = new JsonModel(array(
1610
                'success' => false,
1611
                'message' => $message,
1612
            ));
1613
        return $model->setTerminal(true);
1614
    }
1615
1616
    /**
1617
     * @param string $helperName