Passed
Push — dpa_submit21 ( e4087a...141260 )
by David
08:42
created
html/user/submit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
     if ($owner) {
478 478
         row2('submitter', $owner->name);
479 479
     }
480
-    row2("application", $app?$app->name:'---');
480
+    row2("application", $app ? $app->name : '---');
481 481
     row2("state", batch_state_string($batch->state));
482 482
     //row2("# jobs", $batch->njobs);
483 483
     //row2("# error jobs", $batch->nerror_jobs);
@@ -536,9 +536,9 @@  discard block
 block discarded – undo
536 536
         "status"
537 537
     ];
538 538
     row_heading_array($x);
539
-    foreach($wus as $wu) {
539
+    foreach ($wus as $wu) {
540 540
         $y = '';
541
-        switch($wu->status) {
541
+        switch ($wu->status) {
542 542
         case WU_SUCCESS:
543 543
             $resultid = $wu->canonical_resultid;
544 544
             $y = '<font color="green">completed</font>';
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
     $results = BoincResult::enum("workunitid=$wuid");
612 612
     $upload_dir = parse_config(get_config(), "<upload_dir>");
613 613
     $fanout = parse_config(get_config(), "<uldl_dir_fanout>");
614
-    foreach($results as $result) {
614
+    foreach ($results as $result) {
615 615
         $x = [
616 616
             "<a href=result.php?resultid=$result->id>$result->id</a>",
617 617
             state_string($result)
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
         if ($result->server_state == RESULT_SERVER_STATE_OVER) {
621 621
             $phys_names = get_outfile_phys_names($result);
622 622
             $log_names = get_outfile_log_names($result);
623
-            for ($i=0; $i<count($phys_names); $i++) {
623
+            for ($i = 0; $i < count($phys_names); $i++) {
624 624
                 if ($is_assim_move) {
625 625
                     // file is in
626 626
                     // project/results/<batchid>/<wu_name>__file_<log_name>
Please login to merge, or discard this patch.