Passed
Pull Request — master (#6470)
by David
21:16 queued 09:22
created
html/user/submit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -668,7 +668,7 @@  discard block
 block discarded – undo
668 668
     if ($owner) {
669 669
         row2('submitter', $owner->name);
670 670
     }
671
-    row2("application", $app?$app->name:'---');
671
+    row2("application", $app ? $app->name : '---');
672 672
     row2("state", batch_state_string($batch->state));
673 673
     //row2("# jobs", $batch->njobs);
674 674
     //row2("# error jobs", $batch->nerror_jobs);
@@ -758,11 +758,11 @@  discard block
 block discarded – undo
758 758
         "GFLOPS-hours"
759 759
     ];
760 760
     row_heading_array($x);
761
-    foreach($wus as $wu) {
761
+    foreach ($wus as $wu) {
762 762
         if ($status && $wu->status != $status) continue;
763 763
         $y = '';
764 764
         $c = '---';
765
-        switch($wu->status) {
765
+        switch ($wu->status) {
766 766
         case WU_SUCCESS:
767 767
             $resultid = $wu->canonical_resultid;
768 768
             $y = sprintf('<font color="%s">completed</font>', COLOR_SUCCESS);
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
     $results = BoincResult::enum("workunitid=$wuid");
843 843
     $upload_dir = parse_config(get_config(), "<upload_dir>");
844 844
     $fanout = parse_config(get_config(), "<uldl_dir_fanout>");
845
-    foreach($results as $result) {
845
+    foreach ($results as $result) {
846 846
         $x = [
847 847
             "<a href=result.php?resultid=$result->id>$result->id</a>",
848 848
             state_string($result)
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
         if ($result->server_state == RESULT_SERVER_STATE_OVER) {
852 852
             $phys_names = get_outfile_phys_names($result);
853 853
             $log_names = get_outfile_log_names($result);
854
-            for ($i=0; $i<count($phys_names); $i++) {
854
+            for ($i = 0; $i < count($phys_names); $i++) {
855 855
                 if ($is_assim_move) {
856 856
                     // file is in
857 857
                     // project/results/<batchid>/<wu_name>__file_<log_name>
Please login to merge, or discard this patch.