Passed
Push — master ( 0135da...7eed95 )
by John
04:22
created
app/Models/SubmissionModel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
                                             ->where(['verdict'=>'Waiting'])
414 414
                                             ->get()
415 415
                                             ->all();
416
-        foreach($ret as &$r){
416
+        foreach ($ret as &$r) {
417 417
             $r["ocode"]=DB::table("oj")->where(["oid"=>$r["oid"]])->first()["ocode"];
418 418
         }
419 419
         return $ret;
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
         if (isset($sub['verdict'])) {
432 432
             $sub["color"]=$this->colorScheme[$sub['verdict']];
433 433
         }
434
-        $result = DB::table($this->tableName)->where(['sid'=>$sid])->update($sub);
434
+        $result=DB::table($this->tableName)->where(['sid'=>$sid])->update($sub);
435 435
         // $contestModel = new ContestModel();
436 436
         // $submission_info = DB::table($this->tableName) -> where(['sid'=>$sid]) -> get() -> first();
437 437
         // if ($result==1 && $submission_info['cid'] && $contestModel->isContestRunning($submission_info['cid'])){
@@ -513,15 +513,15 @@  discard block
 block discarded – undo
513 513
             'desc'
514 514
         );
515 515
 
516
-        if($filter["pcode"]){
516
+        if ($filter["pcode"]) {
517 517
             $paginator=$paginator->where(["pcode"=>$filter["pcode"]]);
518 518
         }
519 519
 
520
-        if($filter["result"]){
520
+        if ($filter["result"]) {
521 521
             $paginator=$paginator->where(["verdict"=>$filter["result"]]);
522 522
         }
523 523
 
524
-        if($filter["account"]){
524
+        if ($filter["account"]) {
525 525
             $paginator=$paginator->where(["name"=>$filter["account"]]);
526 526
         }
527 527
 
Please login to merge, or discard this patch.