mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
Sync: fix phpcs complaints
This commit is contained in:
parent
f91c6f211d
commit
b2f97dd2bb
@ -484,10 +484,10 @@ class SyncRule extends DbObject
|
||||
$db = $connection->getDbAdapter();
|
||||
|
||||
return (string) $name === (string) $db->fetchOne(
|
||||
$db->select()
|
||||
->from('sync_rule', 'rule_name')
|
||||
->where('rule_name = ?', $name)
|
||||
);
|
||||
$db->select()
|
||||
->from('sync_rule', 'rule_name')
|
||||
->where('rule_name = ?', $name)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -504,10 +504,10 @@ class SyncRule extends DbObject
|
||||
$db = $connection->getDbAdapter();
|
||||
|
||||
return (string) $id === (string) $db->fetchOne(
|
||||
$db->select()
|
||||
->from('sync_rule', 'id')
|
||||
->where('id = ?', $id)
|
||||
->where('rule_name = ?', $name)
|
||||
);
|
||||
$db->select()
|
||||
->from('sync_rule', 'id')
|
||||
->where('id = ?', $id)
|
||||
->where('rule_name = ?', $name)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,6 @@ class CloneSyncRuleForm extends Form
|
||||
$this->addElement('submit', 'submit', [
|
||||
'label' => $this->translate('Clone')
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user