Sync: fix phpcs complaints

This commit is contained in:
Thomas Gelf 2018-06-12 21:31:42 +02:00
parent f91c6f211d
commit b2f97dd2bb
2 changed files with 9 additions and 10 deletions

View File

@ -484,10 +484,10 @@ class SyncRule extends DbObject
$db = $connection->getDbAdapter(); $db = $connection->getDbAdapter();
return (string) $name === (string) $db->fetchOne( return (string) $name === (string) $db->fetchOne(
$db->select() $db->select()
->from('sync_rule', 'rule_name') ->from('sync_rule', 'rule_name')
->where('rule_name = ?', $name) ->where('rule_name = ?', $name)
); );
} }
/** /**
@ -504,10 +504,10 @@ class SyncRule extends DbObject
$db = $connection->getDbAdapter(); $db = $connection->getDbAdapter();
return (string) $id === (string) $db->fetchOne( return (string) $id === (string) $db->fetchOne(
$db->select() $db->select()
->from('sync_rule', 'id') ->from('sync_rule', 'id')
->where('id = ?', $id) ->where('id = ?', $id)
->where('rule_name = ?', $name) ->where('rule_name = ?', $name)
); );
} }
} }

View File

@ -33,7 +33,6 @@ class CloneSyncRuleForm extends Form
$this->addElement('submit', 'submit', [ $this->addElement('submit', 'submit', [
'label' => $this->translate('Clone') 'label' => $this->translate('Clone')
]); ]);
} }
/** /**