diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2021-01-07 12:00:10 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-01-08 22:45:10 +0100 |
commit | 52f1142cd3ff42a2f33e4d0fed6c6247eda677e8 (patch) | |
tree | 68312153b4e4b8ed32e65320e6f311583b39068f | |
parent | 67bbd6bfebc2d11002ff76b55a701b45dafe4149 (diff) |
autofix round2
-rw-r--r-- | lib/Db/ItemMapper.php | 6 |
1 files 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` = ?) '; |