Passed
Push — dpa_buda6 ( 1ca231 )
by David
14:32
created
html/user/buda.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 // show list of BUDA apps and variants,
33 33
 // w/ buttons for adding and deleting
34 34
 //
35
-function app_list($notice=null) {
35
+function app_list($notice = null) {
36 36
     global $buda_root;
37 37
     if (!is_dir($buda_root)) {
38 38
         mkdir($buda_root);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     $dir = "$buda_root/$app/$variant";
97 97
     start_table();
98 98
     table_header('name', 'size', 'md5');
99
-    foreach(scandir($dir) as $f) {
99
+    foreach (scandir($dir) as $f) {
100 100
         if ($f[0] == '.') continue;
101 101
         [$md5, $size] = parse_info_file("$dir/.md5/$f");
102 102
         table_row(
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     //
173 173
     $x = "<input_template>\n";
174 174
     $ninfiles = 1 + count($variant_desc->input_file_names) + count($variant_desc->app_files);
175
-    for ($i=0; $i<$ninfiles; $i++) {
175
+    for ($i = 0; $i < $ninfiles; $i++) {
176 176
         $x .= "   <file_info>\n      <no_delete/>\n   </file_info>\n";
177 177
     }
178 178
     $x .= "   <workunit>\n";
Please login to merge, or discard this patch.