diff --git a/application/controllers/SyncruleController.php b/application/controllers/SyncruleController.php index 928cf2c2..506d94db 100644 --- a/application/controllers/SyncruleController.php +++ b/application/controllers/SyncruleController.php @@ -517,7 +517,6 @@ class SyncruleController extends ActionController if ($this->showNotInBranch($this->translate('Modifying Sync Rules'))) { return; } - } else { $this->addTitle($this->translate('Add sync rule')); $this->tabs(new SyncRuleTabs())->activate('add'); @@ -609,12 +608,11 @@ class SyncruleController extends ActionController $form = SyncPropertyForm::load()->setDb($db); $this->tabs(new SyncRuleTabs($rule))->activate('property'); $this->actions()->add(new Link( - $this->translate('back'), - 'director/syncrule/property', - ['rule_id' => $ruleId], - ['class' => 'icon-left-big'] - )); - + $this->translate('back'), + 'director/syncrule/property', + ['rule_id' => $ruleId], + ['class' => 'icon-left-big'] + )); if ($id = $this->params->get('id')) { $form->loadObject((int) $id); $this->addTitle( diff --git a/library/Director/Db/Branch/BranchStore.php b/library/Director/Db/Branch/BranchStore.php index 2b53fc41..13971b99 100644 --- a/library/Director/Db/Branch/BranchStore.php +++ b/library/Director/Db/Branch/BranchStore.php @@ -116,7 +116,6 @@ class BranchStore } } }); - } protected function newFromDbResult($query) diff --git a/library/Director/ProvidedHook/Monitoring/HostActions.php b/library/Director/ProvidedHook/Monitoring/HostActions.php index d8b88651..d1379c8a 100644 --- a/library/Director/ProvidedHook/Monitoring/HostActions.php +++ b/library/Director/ProvidedHook/Monitoring/HostActions.php @@ -51,7 +51,7 @@ class HostActions extends HostActionsHook } if ($allowEdit) { - $actions[mt('director', 'Modify')] = Url::fromPath('director/host/edit',['name' => $hostname]); + $actions[mt('director', 'Modify')] = Url::fromPath('director/host/edit', ['name' => $hostname]); } return $actions;