@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | if ($owner) { |
552 | 552 | row2('submitter', $owner->name); |
553 | 553 | } |
554 | - row2("application", $app?$app->name:'---'); |
|
554 | + row2("application", $app ? $app->name : '---'); |
|
555 | 555 | row2("state", batch_state_string($batch->state)); |
556 | 556 | //row2("# jobs", $batch->njobs); |
557 | 557 | //row2("# error jobs", $batch->nerror_jobs); |
@@ -610,9 +610,9 @@ discard block |
||
610 | 610 | "status" |
611 | 611 | ]; |
612 | 612 | row_heading_array($x); |
613 | - foreach($wus as $wu) { |
|
613 | + foreach ($wus as $wu) { |
|
614 | 614 | $y = ''; |
615 | - switch($wu->status) { |
|
615 | + switch ($wu->status) { |
|
616 | 616 | case WU_SUCCESS: |
617 | 617 | $resultid = $wu->canonical_resultid; |
618 | 618 | $y = sprintf('<font color="%s">completed</font>', COLOR_SUCCESS); |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | $results = BoincResult::enum("workunitid=$wuid"); |
689 | 689 | $upload_dir = parse_config(get_config(), "<upload_dir>"); |
690 | 690 | $fanout = parse_config(get_config(), "<uldl_dir_fanout>"); |
691 | - foreach($results as $result) { |
|
691 | + foreach ($results as $result) { |
|
692 | 692 | $x = [ |
693 | 693 | "<a href=result.php?resultid=$result->id>$result->id</a>", |
694 | 694 | state_string($result) |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | if ($result->server_state == RESULT_SERVER_STATE_OVER) { |
698 | 698 | $phys_names = get_outfile_phys_names($result); |
699 | 699 | $log_names = get_outfile_log_names($result); |
700 | - for ($i=0; $i<count($phys_names); $i++) { |
|
700 | + for ($i = 0; $i < count($phys_names); $i++) { |
|
701 | 701 | if ($is_assim_move) { |
702 | 702 | // file is in |
703 | 703 | // project/results/<batchid>/<wu_name>__file_<log_name> |