security/acme-client: style updates

This commit is contained in:
Franco Fichtner
2019-10-24 09:27:59 +02:00
parent d19ea79d02
commit a605772470
2 changed files with 2 additions and 5 deletions
@@ -48,11 +48,9 @@ class M1_6_0 extends BaseModelMigration
// Check if account directory exists
// Accounts that haven't been used yet don't need to be migrated.
if (is_dir($account_dir)) {
// Check if account configuration can be found.
$account_file = "${account_dir}/account.conf";
if (is_file($account_file)) {
// Parse config file and modify path information
$account_conf = parse_ini_file($account_file);
foreach ($account_conf as $key => $value) {
@@ -71,8 +69,7 @@ class M1_6_0 extends BaseModelMigration
// Convert array back to ini file format
$new_account_conf = array();
foreach($account_conf as $key => $value)
{
foreach ($account_conf as $key => $value) {
$new_account_conf[] = "${key}='${value}'";
}
@@ -328,7 +328,7 @@ function eval_optional_acme_args()
$acme_args[] = isset($options["S"]) ? "--staging" : null; // for debug purpose
// Set log level
switch($configObj->OPNsense->AcmeClient->settings->logLevel) {
switch ($configObj->OPNsense->AcmeClient->settings->logLevel) {
case "extended":
$acme_args[] = "--log-level 2";
case "debug":