@@ -58,7 +58,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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"; |