diff options
author | dartcafe <github@dartcafe.de> | 2021-04-28 00:23:04 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-04-28 00:23:04 +0300 |
commit | 958d8432ca1c77259f6add42e1850faf5672c2b1 (patch) | |
tree | 52352b18fa544cc13140ab87f019658ba9b97c2d /lib | |
parent | 0cfffdb46edcf0d12bbeb2b091196bc9e1fde923 (diff) |
cs fix
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/LogMapper.php | 7 | ||||
-rw-r--r-- | lib/Db/PollMapper.php | 1 | ||||
-rw-r--r-- | lib/Db/PreferencesMapper.php | 8 | ||||
-rw-r--r-- | lib/Db/ShareMapper.php | 6 | ||||
-rw-r--r-- | lib/Db/SubscriptionMapper.php | 8 |
5 files changed, 13 insertions, 17 deletions
diff --git a/lib/Db/LogMapper.php b/lib/Db/LogMapper.php index 7f5a26bb..caaa441b 100644 --- a/lib/Db/LogMapper.php +++ b/lib/Db/LogMapper.php @@ -154,9 +154,8 @@ class LogMapper extends QBMapper { public function deleteByUserId(string $userId): void { $query = $this->db->getQueryBuilder(); $query->delete($this->getTableName()) - ->where('user_id = :userId') - ->setParameter('userId', $userId); - $query->execute(); + ->where('user_id = :userId') + ->setParameter('userId', $userId); + $query->execute(); } - } diff --git a/lib/Db/PollMapper.php b/lib/Db/PollMapper.php index 983cf44a..9fffdc74 100644 --- a/lib/Db/PollMapper.php +++ b/lib/Db/PollMapper.php @@ -100,5 +100,4 @@ class PollMapper extends QBMapper { ->setParameter('userId', $userId); $query->execute(); } - } diff --git a/lib/Db/PreferencesMapper.php b/lib/Db/PreferencesMapper.php index 54b3d91a..42bb1479 100644 --- a/lib/Db/PreferencesMapper.php +++ b/lib/Db/PreferencesMapper.php @@ -94,11 +94,11 @@ class PreferencesMapper extends QBMapper { /** * @return void */ - public function deleteByUserId($userId){ + public function deleteByUserId(string $userId): void { $query = $this->db->getQueryBuilder(); $query->delete($this->getTableName()) - ->where('user_id = :userId') - ->setParameter('userId', $userId); - $query->execute(); + ->where('user_id = :userId') + ->setParameter('userId', $userId); + $query->execute(); } } diff --git a/lib/Db/ShareMapper.php b/lib/Db/ShareMapper.php index 32074ca1..eb498793 100644 --- a/lib/Db/ShareMapper.php +++ b/lib/Db/ShareMapper.php @@ -122,9 +122,9 @@ class ShareMapper extends QBMapper { public function deleteByUserId(string $userId): void { $query = $this->db->getQueryBuilder(); $query->delete($this->getTableName()) - ->where('user_id = :userId') - ->setParameter('userId', $userId); - $query->execute(); + ->where('user_id = :userId') + ->setParameter('userId', $userId); + $query->execute(); } /** diff --git a/lib/Db/SubscriptionMapper.php b/lib/Db/SubscriptionMapper.php index 1b9b4634..59275451 100644 --- a/lib/Db/SubscriptionMapper.php +++ b/lib/Db/SubscriptionMapper.php @@ -143,10 +143,8 @@ class SubscriptionMapper extends QBMapper { public function deleteByUserId(string $userId): void { $query = $this->db->getQueryBuilder(); $query->delete($this->getTableName()) - ->where('user_id = :userId') - ->setParameter('userId', $userId); - $query->execute(); + ->where('user_id = :userId') + ->setParameter('userId', $userId); + $query->execute(); } - - } |