src: style sweep

This commit is contained in:
Franco Fichtner 2022-01-31 08:43:25 +01:00
parent f530e4fb4b
commit d2b9c6eebd
3 changed files with 3 additions and 4 deletions

View File

@ -571,7 +571,6 @@ function unbound_add_host_entries($ifconfig_details = null)
}
}
}
}
}

View File

@ -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 {

View File

@ -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,