@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | if ($owner) { |
| 470 | 470 | row2('submitter', $owner->name); |
| 471 | 471 | } |
| 472 | - row2("application", $app?$app->name:'---'); |
|
| 472 | + row2("application", $app ? $app->name : '---'); |
|
| 473 | 473 | row2("state", batch_state_string($batch->state)); |
| 474 | 474 | //row2("# jobs", $batch->njobs); |
| 475 | 475 | //row2("# error jobs", $batch->nerror_jobs); |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | $x[] = "Download Results"; |
| 532 | 532 | } |
| 533 | 533 | row_heading_array($x); |
| 534 | - foreach($wus as $wu) { |
|
| 534 | + foreach ($wus as $wu) { |
|
| 535 | 535 | $resultid = $wu->canonical_resultid; |
| 536 | 536 | if ($resultid) { |
| 537 | 537 | $y = '<font color="green">completed</font>'; |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | $text = "---"; |
| 541 | 541 | if ($batch->state == BATCH_STATE_COMPLETE) { |
| 542 | 542 | $y = '<font color="red">failed</font>'; |
| 543 | - } else { |
|
| 543 | + } else { |
|
| 544 | 544 | $y = "in progress"; |
| 545 | 545 | } |
| 546 | 546 | } |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | $results = BoincResult::enum("workunitid=$wuid"); |
| 606 | 606 | $upload_dir = parse_config(get_config(), "<upload_dir>"); |
| 607 | 607 | $fanout = parse_config(get_config(), "<uldl_dir_fanout>"); |
| 608 | - foreach($results as $result) { |
|
| 608 | + foreach ($results as $result) { |
|
| 609 | 609 | $x = [ |
| 610 | 610 | "<a href=result.php?resultid=$result->id>$result->id</a>", |
| 611 | 611 | state_string($result) |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | if ($result->server_state == RESULT_SERVER_STATE_OVER) { |
| 615 | 615 | $phys_names = get_outfile_phys_names($result); |
| 616 | 616 | $log_names = get_outfile_log_names($result); |
| 617 | - for ($i=0; $i<count($phys_names); $i++) { |
|
| 617 | + for ($i = 0; $i < count($phys_names); $i++) { |
|
| 618 | 618 | if ($is_assim_move) { |
| 619 | 619 | // file is in |
| 620 | 620 | // project/results/<batchid>/<wu_name>__file_<log_name> |
@@ -459,7 +459,7 @@ |
||
| 459 | 459 | |
| 460 | 460 | $is_assim_move = is_assim_move($app); |
| 461 | 461 | |
| 462 | - page_head("Batch $batch_id"); |
|
| 462 | + page_head("batch $batch_id"); |
|
| 463 | 463 | text_start(800); |
| 464 | 464 | start_table(); |
| 465 | 465 | row2("name", $batch->name); |