Passed
Push — dpa_buda5 ( e14f71...f24fc2 )
by David
10:02
created
html/user/sandbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     } else {
107 107
         sort($files);
108 108
         start_table();
109
-        table_header("Name<br><small>(click to view text files)</small>", "Modified", "Size (bytes)", "MD5", "Delete","Download");
109
+        table_header("Name<br><small>(click to view text files)</small>", "Modified", "Size (bytes)", "MD5", "Delete", "Download");
110 110
         foreach ($files as $f) {
111 111
             [$md5, $size] = sandbox_parse_info_file($user, $f);
112 112
             $path = "$dir/$f";
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     $notice = "";
139 139
     $dir = sandbox_dir($user);
140 140
     $count = count($_FILES['new_file']['tmp_name']);
141
-    for ($i=0; $i<$count; $i++) {
141
+    for ($i = 0; $i < $count; $i++) {
142 142
         $tmp_name = $_FILES['new_file']['tmp_name'][$i];
143 143
         if (!is_uploaded_file($tmp_name)) {
144 144
             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
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     if (!is_valid_filename($app)) die('bad arg');
93 93
     $variant = get_str('variant');
94 94
     if (!is_valid_filename($variant)) die('bad arg');
95
-    page_head("App $app variant $variant");
95
+    page_head("app $app variant $variant");
96 96
     $dir = "$buda_root/$app/$variant";
97 97
     start_table();
98 98
     table_header('name', 'size', 'md5');
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     form_input_hidden('app', $app);
137 137
     form_input_hidden('action', 'variant_action');
138 138
     form_input_text('Plan class', 'variant');
139
-    form_select("Dockerfile$sb", 'dockerfile', $sbitems);
139
+    form_select("dockerfile$sb", 'dockerfile', $sbitems);
140 140
     form_select_multiple("Application files$sb", 'app_files', $sbitems);
141 141
     form_input_text(
142 142
         'Input file names<br><small>Space-separated</small>',
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     // Note: we don't currently allow indirect file access.
223 223
     // If we did, we'd need to create job.toml to mount project dir
224 224
 
225
-    app_list("Variant $variant added for app $app.");
225
+    app_list("variant $variant added for app $app.");
226 226
 }
227 227
 
228 228
 function variant_delete() {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         if ($ret) {
250 250
             error_page("delete failed");
251 251
         }
252
-        $notice = "Variant $variant of app $app removed.";
252
+        $notice = "variant $variant of app $app removed.";
253 253
         app_list($notice);
254 254
     } else {
255 255
         page_head("Confirm");
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         if ($ret) {
279 279
             error_page('delete failed');
280 280
         }
281
-        $notice = "App $app removed.";
281
+        $notice = "app $app removed.";
282 282
         app_list($notice);
283 283
     } else {
284 284
         page_head('Confirm');
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     if (!is_valid_filename($name)) die("bad arg: $name");
308 308
     $dir = "$buda_root/$name";
309 309
     if (file_exists($dir)) {
310
-        error_page("App $name already exists.");
310
+        error_page("app $name already exists.");
311 311
     }
312 312
     mkdir($dir);
313 313
     header("Location: buda.php");
Please login to merge, or discard this patch.