Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1431-1438 (lines=8) @@
1428
     * @param array $data
1429
     * @return \Zend\View\Model\JsonModel
1430
     */
1431
    protected function successJson($data = null)
1432
    {
1433
        $model = new JsonModel(array(
1434
            'success' => true,
1435
            'data' => $data
1436
        ));
1437
        return $model->setTerminal(true);
1438
    }
1439
    
1440
    /**
1441
     * return ajax response in json format
@@ 1446-1453 (lines=8) @@
1443
     * @param string $message
1444
     * @return \Zend\View\Model\JsonModel
1445
     */
1446
    protected function errorJson($message = null)
1447
    {
1448
        $model = new JsonModel(array(
1449
            'success' => false,
1450
            'message' => $message
1451
        ));
1452
        return $model->setTerminal(true);
1453
    }
1454
1455
    /**
1456
     * @param string $helperName