diff --git a/src/etc/inc/plugins.inc.d/unbound.inc b/src/etc/inc/plugins.inc.d/unbound.inc index eb6c07448..e6e764956 100644 --- a/src/etc/inc/plugins.inc.d/unbound.inc +++ b/src/etc/inc/plugins.inc.d/unbound.inc @@ -571,7 +571,6 @@ function unbound_add_host_entries($ifconfig_details = null) } } } - } } diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php index a1c441fff..4e6e26c97 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php @@ -134,7 +134,7 @@ class SettingsController extends ApiMutableModelControllerBase $host_uuid = $this->request->get('host'); $result = $this->getBase('alias', 'aliases.alias', $uuid); if (empty($uuid) && !empty($host_uuid)) { - foreach($result['alias']['host'] as $key => &$value) { + foreach ($result['alias']['host'] as $key => &$value) { if ($key == $host_uuid) { $value['selected'] = 1; } else { diff --git a/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_1.php b/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_1.php index 45c19d680..8a7a08852 100755 --- a/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_1.php +++ b/src/opnsense/mvc/app/models/OPNsense/Unbound/Migrations/M1_0_1.php @@ -45,7 +45,7 @@ class M1_0_1 extends BaseModelMigration $config = Config::getInstance()->object(); if (!empty($config->unbound->hosts)) { - foreach($config->unbound->hosts as $old_host) { + foreach ($config->unbound->hosts as $old_host) { $new_host = $model->hosts->host->add(); /* Backwards compatibility for records created before introducing RR types. */ @@ -83,7 +83,7 @@ class M1_0_1 extends BaseModelMigration } if (!empty($config->unbound->domainoverrides)) { - foreach($config->unbound->domainoverrides as $old_domain) { + foreach ($config->unbound->domainoverrides as $old_domain) { $new_domain = $model->domains->domain->add(); $domain_data = [ 'enabled' => 1,