Passed
Push — dpa_buda9 ( a15de5 )
by David
09:58
created
html/user/buda.php 1 patch
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);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     $dir = "$buda_root/$app/$variant";
123 123
     start_table();
124 124
     table_header('name', 'size', 'md5');
125
-    foreach(scandir($dir) as $f) {
125
+    foreach (scandir($dir) as $f) {
126 126
         if ($f[0] == '.') continue;
127 127
         [$md5, $size] = parse_info_file("$dir/.md5/$f");
128 128
         table_row(
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     //
199 199
     $x = "<input_template>\n";
200 200
     $ninfiles = 1 + count($variant_desc->input_file_names) + count($variant_desc->app_files);
201
-    for ($i=0; $i<$ninfiles; $i++) {
201
+    for ($i = 0; $i < $ninfiles; $i++) {
202 202
         $x .= "   <file_info>\n      <no_delete/>\n      <executable/>\n   </file_info>\n";
203 203
     }
204 204
     $x .= "   <workunit>\n";
Please login to merge, or discard this patch.