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'))) { if ($this->showNotInBranch($this->translate('Modifying Sync Rules'))) {
return; return;
} }
} else { } else {
$this->addTitle($this->translate('Add sync rule')); $this->addTitle($this->translate('Add sync rule'));
$this->tabs(new SyncRuleTabs())->activate('add'); $this->tabs(new SyncRuleTabs())->activate('add');
@ -614,7 +613,6 @@ class SyncruleController extends ActionController
['rule_id' => $ruleId], ['rule_id' => $ruleId],
['class' => 'icon-left-big'] ['class' => 'icon-left-big']
)); ));
if ($id = $this->params->get('id')) { if ($id = $this->params->get('id')) {
$form->loadObject((int) $id); $form->loadObject((int) $id);
$this->addTitle( $this->addTitle(

View File

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

View File

@ -51,7 +51,7 @@ class HostActions extends HostActionsHook
} }
if ($allowEdit) { 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; return $actions;