Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1200-1207 (lines=8) @@
1197
     * @param array $data
1198
     * @return \Zend\View\Model\JsonModel
1199
     */
1200
    protected function successJson($data = null)
1201
    {
1202
        $model = new JsonModel(array(
1203
            'success' => true,
1204
            'data' => $data
1205
        ));
1206
        return $model->setTerminal(true);
1207
    }
1208
    
1209
    /**
1210
     * return ajax response in json format
@@ 1215-1222 (lines=8) @@
1212
     * @param string $message
1213
     * @return \Zend\View\Model\JsonModel
1214
     */
1215
    protected function errorJson($message = null)
1216
    {
1217
        $model = new JsonModel(array(
1218
            'success' => false,
1219
            'message' => $message
1220
        ));
1221
        return $model->setTerminal(true);
1222
    }
1223
1224
    /**
1225
     * @param string $helperName