@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | ]; |
| 277 | 277 | $testcase_index += 1; |
| 278 | 278 | } |
| 279 | - }else{ |
|
| 279 | + } else{ |
|
| 280 | 280 | $info_content = [ |
| 281 | 281 | 'spj' => true, |
| 282 | 282 | 'test_cases' => [] |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | $zip->addFromString('info', json_encode($info_content)); |
| 304 | 304 | $zip->close(); |
| 305 | 305 | //$err('The zip files must include a file named info including info of test cases, and the format can see ZsgsDesign/NOJ wiki.'); |
| 306 | - }else{ |
|
| 306 | + } else{ |
|
| 307 | 307 | $info_content = json_decode($zip->getFromName('info'),true); |
| 308 | 308 | }; |
| 309 | 309 | $zip->open($path); |
@@ -322,10 +322,10 @@ discard block |
||
| 322 | 322 | $problem = EloquentProblemModel::find($form->pid); |
| 323 | 323 | if(!empty($problem)){ |
| 324 | 324 | $pcode = $problem->pcode; |
| 325 | - }else{ |
|
| 325 | + } else{ |
|
| 326 | 326 | $pcode = $form->pcode; |
| 327 | 327 | } |
| 328 | - }else{ |
|
| 328 | + } else{ |
|
| 329 | 329 | $pcode = $form->pcode; |
| 330 | 330 | } |
| 331 | 331 | |