@@ -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); |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | if ($result->id == $wu->canonical_resultid) { |
811 | 811 | $log_names = get_outfile_log_names($result); |
812 | 812 | $nfiles = count($log_names); |
813 | - for ($i=0; $i<$nfiles; $i++) { |
|
813 | + for ($i = 0; $i < $nfiles; $i++) { |
|
814 | 814 | $name = $log_names[$i]; |
815 | 815 | // don't show 'view' link if it's a .zip |
816 | 816 | $y = "$name: "; |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | $phys_names = get_outfile_phys_names($result); |
835 | 835 | $log_names = get_outfile_log_names($result); |
836 | 836 | $nfiles = count($log_names); |
837 | - for ($i=0; $i<$nfiles; $i++) { |
|
837 | + for ($i = 0; $i < $nfiles; $i++) { |
|
838 | 838 | $path = dir_hier_path( |
839 | 839 | $phys_names[$i], $upload_dir, $fanout |
840 | 840 | ); |