Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1471-1478 (lines=8) @@
1468
     * @param array $data
1469
     * @return \Zend\View\Model\JsonModel
1470
     */
1471
    protected function successJson($data = null)
1472
    {
1473
        $model = new JsonModel(array(
1474
                'success' => true,
1475
                'data'    => $data,
1476
            ));
1477
        return $model->setTerminal(true);
1478
    }
1479
1480
    /**
1481
     * return ajax response in json format
@@ 1486-1493 (lines=8) @@
1483
     * @param string $message
1484
     * @return \Zend\View\Model\JsonModel
1485
     */
1486
    protected function errorJson($message = null)
1487
    {
1488
        $model = new JsonModel(array(
1489
                'success' => false,
1490
                'message' => $message,
1491
            ));
1492
        return $model->setTerminal(true);
1493
    }
1494
1495
    /**
1496
     * @param string $helperName