app, lib: formatting, syntax

This commit is contained in:
Thomas Gelf 2023-02-23 12:00:20 +01:00
parent 40254714b8
commit bbf85f052b
3 changed files with 6 additions and 9 deletions

View File

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

View File

@ -116,7 +116,6 @@ class BranchStore
}
}
});
}
protected function newFromDbResult($query)

View File

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