mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
src: style sweep
This commit is contained in:
parent
f530e4fb4b
commit
d2b9c6eebd
@ -571,7 +571,6 @@ function unbound_add_host_entries($ifconfig_details = null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user