@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | if ($owner) { |
| 650 | 650 | row2('submitter', $owner->name); |
| 651 | 651 | } |
| 652 | - row2("application", $app?$app->name:'---'); |
|
| 652 | + row2("application", $app ? $app->name : '---'); |
|
| 653 | 653 | row2("state", batch_state_string($batch->state)); |
| 654 | 654 | //row2("# jobs", $batch->njobs); |
| 655 | 655 | //row2("# error jobs", $batch->nerror_jobs); |
@@ -739,11 +739,11 @@ discard block |
||
| 739 | 739 | "GFLOPS-hours" |
| 740 | 740 | ]; |
| 741 | 741 | row_heading_array($x); |
| 742 | - foreach($wus as $wu) { |
|
| 742 | + foreach ($wus as $wu) { |
|
| 743 | 743 | if ($status && $wu->status != $status) continue; |
| 744 | 744 | $y = ''; |
| 745 | 745 | $c = '---'; |
| 746 | - switch($wu->status) { |
|
| 746 | + switch ($wu->status) { |
|
| 747 | 747 | case WU_SUCCESS: |
| 748 | 748 | $resultid = $wu->canonical_resultid; |
| 749 | 749 | $y = sprintf('<font color="%s">completed</font>', COLOR_SUCCESS); |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | if ($result->id == $wu->canonical_resultid) { |
| 833 | 833 | $log_names = get_outfile_log_names($result); |
| 834 | 834 | $nfiles = count($log_names); |
| 835 | - for ($i=0; $i<$nfiles; $i++) { |
|
| 835 | + for ($i = 0; $i < $nfiles; $i++) { |
|
| 836 | 836 | $name = $log_names[$i]; |
| 837 | 837 | // don't show 'view' link if it's a .zip |
| 838 | 838 | $y = "$name: "; |
@@ -856,7 +856,7 @@ discard block |
||
| 856 | 856 | $phys_names = get_outfile_phys_names($result); |
| 857 | 857 | $log_names = get_outfile_log_names($result); |
| 858 | 858 | $nfiles = count($log_names); |
| 859 | - for ($i=0; $i<$nfiles; $i++) { |
|
| 859 | + for ($i = 0; $i < $nfiles; $i++) { |
|
| 860 | 860 | $path = dir_hier_path( |
| 861 | 861 | $phys_names[$i], $upload_dir, $fanout |
| 862 | 862 | ); |