From 52f1142cd3ff42a2f33e4d0fed6c6247eda677e8 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Thu, 7 Jan 2021 12:00:10 +0100 Subject: autofix round2 --- lib/Db/ItemMapper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php index 0a59675c3..abd57b7c1 100644 --- a/lib/Db/ItemMapper.php +++ b/lib/Db/ItemMapper.php @@ -200,7 +200,7 @@ class ItemMapper extends Mapper } - private function getOperator($oldestFirst): string + private function getOperator(bool $oldestFirst): string { if ($oldestFirst) { return '>'; @@ -249,7 +249,7 @@ class ItemMapper extends Mapper /** * @param (int|mixed|null)[] $params */ - private function findEntitiesIgnoringNegativeLimit($sql, array $params, $limit): array + private function findEntitiesIgnoringNegativeLimit(string $sql, array $params, int $limit): array { // ignore limit if negative to offer a way to return all feeds if ($limit >= 0) { @@ -343,7 +343,7 @@ class ItemMapper extends Mapper } - public function findAllUnreadOrStarred(string $userId): int + public function findAllUnreadOrStarred(string $userId): array { $params = [$userId, true, true]; $sql = 'AND (`items`.`unread` = ? OR `items`.`starred` = ?) '; -- cgit v1.2.3