@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | // show list of BUDA apps and variants, |
| 37 | 37 | // w/ buttons for adding and deleting |
| 38 | 38 | // |
| 39 | -function app_list($notice=null) { |
|
| 39 | +function app_list($notice = null) { |
|
| 40 | 40 | global $buda_root; |
| 41 | 41 | if (!is_dir($buda_root)) { |
| 42 | 42 | mkdir($buda_root); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | // |
| 228 | 228 | $x = "<input_template>\n"; |
| 229 | 229 | $ninfiles = count($desc->input_file_names); |
| 230 | - for ($i=0; $i<$ninfiles; $i++) { |
|
| 230 | + for ($i = 0; $i < $ninfiles; $i++) { |
|
| 231 | 231 | $x .= " <file_info>\n <no_delete/>\n </file_info>\n"; |
| 232 | 232 | } |
| 233 | 233 | $x .= " <workunit>\n"; |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | ); |
| 249 | 249 | |
| 250 | 250 | $x .= sprintf(" <max_delay>%f</max_delay>\n", |
| 251 | - $desc->max_delay_days * 86400. |
|
| 251 | + $desc->max_delay_days*86400. |
|
| 252 | 252 | ); |
| 253 | 253 | |
| 254 | 254 | $x .= " <buda_app_name>$app</buda_app_name>\n"; |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | } else { |
| 322 | 322 | $creating = true; |
| 323 | 323 | } |
| 324 | - $variant = sprintf('%s_%s', $cpu_type, $plan_class?$plan_class:'cpu'); |
|
| 324 | + $variant = sprintf('%s_%s', $cpu_type, $plan_class ? $plan_class : 'cpu'); |
|
| 325 | 325 | if (!is_valid_filename($variant)) { |
| 326 | 326 | error_page(filename_rules()); |
| 327 | 327 | } |
@@ -466,8 +466,8 @@ discard block |
||
| 466 | 466 | } |
| 467 | 467 | } |
| 468 | 468 | |
| 469 | -function app_form($desc=null) { |
|
| 470 | - page_head_select2($desc?"Edit BUDA app $desc->name":'Create BUDA app'); |
|
| 469 | +function app_form($desc = null) { |
|
| 470 | + page_head_select2($desc ? "Edit BUDA app $desc->name" : 'Create BUDA app'); |
|
| 471 | 471 | form_start('buda.php'); |
| 472 | 472 | form_input_hidden('action', 'app_action'); |
| 473 | 473 | if ($desc) { |