@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | if ($owner) { |
645 | 645 | row2('submitter', $owner->name); |
646 | 646 | } |
647 | - row2("application", $app?$app->name:'---'); |
|
647 | + row2("application", $app ? $app->name : '---'); |
|
648 | 648 | row2("state", batch_state_string($batch->state)); |
649 | 649 | //row2("# jobs", $batch->njobs); |
650 | 650 | //row2("# error jobs", $batch->nerror_jobs); |
@@ -718,10 +718,10 @@ discard block |
||
718 | 718 | "GFLOPS-hours" |
719 | 719 | ]; |
720 | 720 | row_heading_array($x); |
721 | - foreach($wus as $wu) { |
|
721 | + foreach ($wus as $wu) { |
|
722 | 722 | $y = ''; |
723 | 723 | $c = '---'; |
724 | - switch($wu->status) { |
|
724 | + switch ($wu->status) { |
|
725 | 725 | case WU_SUCCESS: |
726 | 726 | $resultid = $wu->canonical_resultid; |
727 | 727 | $y = sprintf('<font color="%s">completed</font>', COLOR_SUCCESS); |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | if ($is_assim_move) { |
810 | 810 | if ($result->id == $wu->canonical_resultid) { |
811 | 811 | $log_names = get_outfile_log_names($result); |
812 | - for ($i=0; $i<count($log_names); $i++) { |
|
812 | + for ($i = 0; $i < count($log_names); $i++) { |
|
813 | 813 | $name = $log_names[$i]; |
814 | 814 | // don't show 'view' link if it's a .zip |
815 | 815 | $y = "$name: "; |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | if ($result->server_state == RESULT_SERVER_STATE_OVER) { |
833 | 833 | $phys_names = get_outfile_phys_names($result); |
834 | 834 | $log_names = get_outfile_log_names($result); |
835 | - for ($i=0; $i<count($phys_names); $i++) { |
|
835 | + for ($i = 0; $i < count($phys_names); $i++) { |
|
836 | 836 | $path = dir_hier_path( |
837 | 837 | $phys_names[$i], $upload_dir, $fanout |
838 | 838 | ); |