Completed
Push — master ( 1ec584...92992b )
by Vitalii
53s queued 21s
created
html/user/submit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
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);
@@ -611,10 +611,10 @@  discard block
 block discarded – undo
611 611
         "GFLOPS-hours"
612 612
     ];
613 613
     row_heading_array($x);
614
-    foreach($wus as $wu) {
614
+    foreach ($wus as $wu) {
615 615
         $y = '';
616 616
         $c = '---';
617
-        switch($wu->status) {
617
+        switch ($wu->status) {
618 618
         case WU_SUCCESS:
619 619
             $resultid = $wu->canonical_resultid;
620 620
             $y = sprintf('<font color="%s">completed</font>', COLOR_SUCCESS);
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
     $results = BoincResult::enum("workunitid=$wuid");
695 695
     $upload_dir = parse_config(get_config(), "<upload_dir>");
696 696
     $fanout = parse_config(get_config(), "<uldl_dir_fanout>");
697
-    foreach($results as $result) {
697
+    foreach ($results as $result) {
698 698
         $x = [
699 699
             "<a href=result.php?resultid=$result->id>$result->id</a>",
700 700
             state_string($result)
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
         if ($result->server_state == RESULT_SERVER_STATE_OVER) {
704 704
             $phys_names = get_outfile_phys_names($result);
705 705
             $log_names = get_outfile_log_names($result);
706
-            for ($i=0; $i<count($phys_names); $i++) {
706
+            for ($i = 0; $i < count($phys_names); $i++) {
707 707
                 if ($is_assim_move) {
708 708
                     // file is in
709 709
                     // project/results/<batchid>/<wu_name>__file_<log_name>
Please login to merge, or discard this patch.