Passed
Push — dpa_web17 ( ac852e )
by David
09:15
created
html/user/sandbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     page_tail();
85 85
 }
86 86
 
87
-function list_files($user, $notice=null) {
87
+function list_files($user, $notice = null) {
88 88
     $dir = sandbox_dir($user);
89 89
     if (!is_dir($dir)) error_page("Can't open sandbox directory");
90 90
     page_head("File sandbox");
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     $notice = "";
169 169
     $dir = sandbox_dir($user);
170 170
     $count = count($_FILES['new_file']['tmp_name']);
171
-    for ($i=0; $i<$count; $i++) {
171
+    for ($i = 0; $i < $count; $i++) {
172 172
         $tmp_name = $_FILES['new_file']['tmp_name'][$i];
173 173
         if (!is_uploaded_file($tmp_name)) {
174 174
             error_page("$tmp_name is not uploaded file");
Please login to merge, or discard this patch.
html/user/buda.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     if (!is_valid_filename($app)) die('bad arg');
119 119
     $variant = get_str('variant');
120 120
     if (!is_valid_filename($variant)) die('bad arg');
121
-    page_head("App $app variant $variant");
121
+    page_head("app $app variant $variant");
122 122
     $dir = "$buda_root/$app/$variant";
123 123
     start_table();
124 124
     table_header('name', 'size', 'md5');
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     form_input_hidden('app', $app);
163 163
     form_input_hidden('action', 'variant_action');
164 164
     form_input_text('Plan class', 'variant');
165
-    form_select("Dockerfile$sb", 'dockerfile', $sbitems);
165
+    form_select("dockerfile$sb", 'dockerfile', $sbitems);
166 166
     form_select_multiple("Application files$sb", 'app_files', $sbitems);
167 167
     form_input_text(
168 168
         'Input file names<br><small>Space-separated</small>',
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     // Note: we don't currently allow indirect file access.
303 303
     // If we did, we'd need to create job.toml to mount project dir
304 304
 
305
-    app_list("Variant $variant added for app $app.");
305
+    app_list("variant $variant added for app $app.");
306 306
 }
307 307
 
308 308
 function variant_delete() {
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
         if ($ret) {
330 330
             error_page("delete failed");
331 331
         }
332
-        $notice = "Variant $variant of app $app removed.";
332
+        $notice = "variant $variant of app $app removed.";
333 333
         app_list($notice);
334 334
     } else {
335 335
         page_head("Confirm");
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
         if ($ret) {
359 359
             error_page('delete failed');
360 360
         }
361
-        $notice = "App $app removed.";
361
+        $notice = "app $app removed.";
362 362
         app_list($notice);
363 363
     } else {
364 364
         page_head('Confirm');
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     }
390 390
     $dir = "$buda_root/$name";
391 391
     if (file_exists($dir)) {
392
-        error_page("App $name already exists.");
392
+        error_page("app $name already exists.");
393 393
     }
394 394
     mkdir($dir);
395 395
     header("Location: buda.php");
Please login to merge, or discard this patch.