From b2f97dd2bbb55e511b151e1c7bab5fd80cfce04c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 12 Jun 2018 21:31:42 +0200 Subject: [PATCH] Sync: fix phpcs complaints --- library/Director/Objects/SyncRule.php | 18 +++++++++--------- .../Director/Web/Form/CloneSyncRuleForm.php | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/library/Director/Objects/SyncRule.php b/library/Director/Objects/SyncRule.php index ede833fc..41ba236c 100644 --- a/library/Director/Objects/SyncRule.php +++ b/library/Director/Objects/SyncRule.php @@ -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) + ); } } diff --git a/library/Director/Web/Form/CloneSyncRuleForm.php b/library/Director/Web/Form/CloneSyncRuleForm.php index 79297433..eac89489 100644 --- a/library/Director/Web/Form/CloneSyncRuleForm.php +++ b/library/Director/Web/Form/CloneSyncRuleForm.php @@ -33,7 +33,6 @@ class CloneSyncRuleForm extends Form $this->addElement('submit', 'submit', [ 'label' => $this->translate('Clone') ]); - } /**