Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1255-1262 (lines=8) @@
1252
     * @param array $data
1253
     * @return \Zend\View\Model\JsonModel
1254
     */
1255
    protected function successJson($data = null)
1256
    {
1257
        $model = new JsonModel(array(
1258
            'success' => true,
1259
            'data' => $data
1260
        ));
1261
        return $model->setTerminal(true);
1262
    }
1263
    
1264
    /**
1265
     * return ajax response in json format
@@ 1270-1277 (lines=8) @@
1267
     * @param string $message
1268
     * @return \Zend\View\Model\JsonModel
1269
     */
1270
    protected function errorJson($message = null)
1271
    {
1272
        $model = new JsonModel(array(
1273
            'success' => false,
1274
            'message' => $message
1275
        ));
1276
        return $model->setTerminal(true);
1277
    }
1278
1279
    /**
1280
     * @param string $helperName