Passed
Push — dpa_buda12 ( 4c4ac7 )
by David
10:41
created
html/user/buda.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 // show list of BUDA apps and variants,
59 59
 // w/ buttons for adding and deleting
60 60
 //
61
-function app_list($notice=null) {
61
+function app_list($notice = null) {
62 62
     global $buda_root;
63 63
     if (!is_dir($buda_root)) {
64 64
         mkdir($buda_root);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     ";
131 131
     start_table('table-striped');
132 132
     table_header('File name', 'size', 'md5');
133
-    foreach(scandir($dir) as $f) {
133
+    foreach (scandir($dir) as $f) {
134 134
         if ($f[0] == '.') continue;
135 135
         [$md5, $size] = parse_info_file("$dir/.md5/$f");
136 136
         table_row(
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     //
210 210
     $x = "<input_template>\n";
211 211
     $ninfiles = 1 + count($variant_desc->input_file_names) + count($variant_desc->app_files);
212
-    for ($i=0; $i<$ninfiles; $i++) {
212
+    for ($i = 0; $i < $ninfiles; $i++) {
213 213
         $x .= "   <file_info>\n      <sticky/>\n      <no_delete/>\n      <executable/>\n   </file_info>\n";
214 214
     }
215 215
     $x .= "   <workunit>\n";
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     form_input_hidden('app', $app);
174 174
     form_input_hidden('action', 'variant_action');
175 175
     form_input_text('Plan class', 'variant');
176
-    form_select("Dockerfile$sb", 'dockerfile', $sbitems);
176
+    form_select("dockerfile$sb", 'dockerfile', $sbitems);
177 177
     form_select_multiple("Application files$sb$sb2", 'app_files', $sbitems, null, 12);
178 178
     form_input_text(
179 179
         'Input file names<br><small>Space-separated</small>',
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     // Note: we don't currently allow indirect file access.
319 319
     // If we did, we'd need to create job.toml to mount project dir
320 320
 
321
-    app_list("Variant $variant added for app $app.");
321
+    app_list("variant $variant added for app $app.");
322 322
 }
323 323
 
324 324
 function variant_delete() {
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         if ($ret) {
346 346
             error_page("delete failed");
347 347
         }
348
-        $notice = "Variant $variant of app $app removed.";
348
+        $notice = "variant $variant of app $app removed.";
349 349
         app_list($notice);
350 350
     } else {
351 351
         page_head("Confirm");
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
         if ($ret) {
375 375
             error_page('delete failed');
376 376
         }
377
-        $notice = "App $app removed.";
377
+        $notice = "app $app removed.";
378 378
         app_list($notice);
379 379
     } else {
380 380
         page_head('Confirm');
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
     }
406 406
     $dir = "$buda_root/$name";
407 407
     if (file_exists($dir)) {
408
-        error_page("App $name already exists.");
408
+        error_page("app $name already exists.");
409 409
     }
410 410
     mkdir($dir);
411 411
     header("Location: buda.php");
Please login to merge, or discard this patch.