Passed
Pull Request — master (#105)
by Chenyi
03:50
created
app/Http/Controllers/VirtualCrawler/HDU/HDU.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,12 +90,10 @@
 block discarded – undo
90 90
         if (strpos("No such problem",$res->body) !== false) {
91 91
             header('HTTP/1.1 404 Not Found');
92 92
             die();
93
-        }
94
-        else if(strpos("Invalid Parameter.",$res->body) !== false) {
93
+        } else if(strpos("Invalid Parameter.",$res->body) !== false) {
95 94
             header('HTTP/1.1 404 Not Found');
96 95
             die();
97
-        }
98
-        else {
96
+        } else {
99 97
             $this->pro['pcode'] = "HDU".$con;
100 98
             $this->pro['OJ'] = 8;
101 99
             $this->pro['contest_id'] = null;
Please login to merge, or discard this patch.
app/Http/Controllers/VirtualJudge/Judge.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@
 block discarded – undo
365 365
                     ];
366 366
                     $this->MODEL->updateSubmission($row['sid'], $sub);
367 367
                 }
368
-            }else if($row['oid']==8) {
368
+            } else if($row['oid']==8) {
369 369
                 try {
370 370
                     $sub = [];
371 371
                     $response = Requests::get("http://acm.hdu.edu.cn/status.php?first=".$row['remote_id']);
Please login to merge, or discard this patch.