Passed
Push — dpa_buda5 ( e38016...e14f71 )
by David
09:53
created
html/user/sandbox.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     } else {
87 87
         sort($files);
88 88
         start_table();
89
-        table_header("Name<br><p class=\"text-muted\">(click to view text files)</p>", "Modified", "Size (bytes)", "MD5", "Delete","Download");
89
+        table_header("Name<br><p class=\"text-muted\">(click to view text files)</p>", "Modified", "Size (bytes)", "MD5", "Delete", "Download");
90 90
         foreach ($files as $f) {
91 91
             [$md5, $size] = sandbox_parse_info_file($user, $f);
92 92
             $path = "$dir/$f";
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     $notice = "";
118 118
     $dir = sandbox_dir($user);
119 119
     $count = count($_FILES['new_file']['tmp_name']);
120
-    for ($i=0; $i<$count; $i++) {
120
+    for ($i = 0; $i < $count; $i++) {
121 121
         $tmp_name = $_FILES['new_file']['tmp_name'][$i];
122 122
         if (!is_uploaded_file($tmp_name)) {
123 123
             error_page("$tmp_name is not uploaded file");
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 if (!$action) $action = post_str('action', true);
209 209
 
210 210
 switch ($action) {
211
-case '': list_files($user,""); break;
211
+case '': list_files($user, ""); break;
212 212
 case 'upload_file': upload_file($user); break;
213 213
 case 'add_file': add_file($user); break;
214 214
 case 'get_file': get_file($user); break;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
     $fname = basename($url);
166 166
     $path = "$dir/$fname";
167 167
     if (file_exists($path)) {
168
-        error_page("File $fname exists; delete it first.");
168
+        error_page("file $fname exists; delete it first.");
169 169
     }
170 170
     copy($url, $path);
171 171
     $notice = "Fetched file from <strong>$url</strong><br/>";
Please login to merge, or discard this patch.
html/user/buda.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     if (!is_valid_filename($app)) die('bad arg');
100 100
     $variant = get_str('variant');
101 101
     if (!is_valid_filename($variant)) die('bad arg');
102
-    page_head("App $app variant $variant");
102
+    page_head("app $app variant $variant");
103 103
     $dir = "$buda_root/$app/$variant";
104 104
     start_table();
105 105
     table_header('name', 'size', 'md5');
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     // Note: we don't currently allow indirect file access.
220 220
     // If we did, we'd need to create job.toml to mount project dir
221 221
 
222
-    app_list("Variant $variant added for app $app.");
222
+    app_list("variant $variant added for app $app.");
223 223
 }
224 224
 
225 225
 function variant_delete() {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         if ($ret) {
247 247
             error_page("delete failed");
248 248
         }
249
-        $notice = "Variant $variant of app $app removed.";
249
+        $notice = "variant $variant of app $app removed.";
250 250
         app_list($notice);
251 251
     } else {
252 252
         page_head("Confirm");
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         if ($ret) {
276 276
             error_page('delete failed');
277 277
         }
278
-        $notice = "App $app removed.";
278
+        $notice = "app $app removed.";
279 279
         app_list($notice);
280 280
     } else {
281 281
         page_head('Confirm');
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     if (!is_valid_filename($name)) die("bad arg: $name");
305 305
     $dir = "$buda_root/$name";
306 306
     if (file_exists($dir)) {
307
-        error_page("App $name already exists.");
307
+        error_page("app $name already exists.");
308 308
     }
309 309
     mkdir($dir);
310 310
     header("Location: buda.php");
Please login to merge, or discard this patch.