Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1395-1402 (lines=8) @@
1392
     * @param array $data
1393
     * @return \Zend\View\Model\JsonModel
1394
     */
1395
    protected function successJson($data = null)
1396
    {
1397
        $model = new JsonModel(array(
1398
            'success' => true,
1399
            'data' => $data
1400
        ));
1401
        return $model->setTerminal(true);
1402
    }
1403
    
1404
    /**
1405
     * return ajax response in json format
@@ 1410-1417 (lines=8) @@
1407
     * @param string $message
1408
     * @return \Zend\View\Model\JsonModel
1409
     */
1410
    protected function errorJson($message = null)
1411
    {
1412
        $model = new JsonModel(array(
1413
            'success' => false,
1414
            'message' => $message
1415
        ));
1416
        return $model->setTerminal(true);
1417
    }
1418
1419
    /**
1420
     * @param string $helperName