@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | $zip->addFromString('info', json_encode($info_content)); |
273 | 273 | $zip->close(); |
274 | 274 | //$err('The zip files must include a file named info including info of test cases, and the format can see ZsgsDesign/NOJ wiki.'); |
275 | - }else{ |
|
275 | + } else{ |
|
276 | 276 | $info_content = json_decode($zip->getFromName('info'),true); |
277 | 277 | }; |
278 | 278 | $zip->open($path); |
@@ -289,10 +289,10 @@ discard block |
||
289 | 289 | $problem = EloquentProblemModel::find($form->pid); |
290 | 290 | if(!empty($problem)){ |
291 | 291 | $pcode = $problem->pcode; |
292 | - }else{ |
|
292 | + } else{ |
|
293 | 293 | $pcode = $form->pcode; |
294 | 294 | } |
295 | - }else{ |
|
295 | + } else{ |
|
296 | 296 | $pcode = $form->pcode; |
297 | 297 | } |
298 | 298 |