Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1374-1381 (lines=8) @@
1371
     * @param array $data
1372
     * @return \Zend\View\Model\JsonModel
1373
     */
1374
    protected function successJson($data = null)
1375
    {
1376
        $model = new JsonModel(array(
1377
            'success' => true,
1378
            'data' => $data
1379
        ));
1380
        return $model->setTerminal(true);
1381
    }
1382
    
1383
    /**
1384
     * return ajax response in json format
@@ 1389-1396 (lines=8) @@
1386
     * @param string $message
1387
     * @return \Zend\View\Model\JsonModel
1388
     */
1389
    protected function errorJson($message = null)
1390
    {
1391
        $model = new JsonModel(array(
1392
            'success' => false,
1393
            'message' => $message
1394
        ));
1395
        return $model->setTerminal(true);
1396
    }
1397
1398
    /**
1399
     * @param string $helperName