1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-01-01 17:42:46 +01:00

autofix round2

This commit is contained in:
Benjamin Brahmer 2021-01-07 12:00:10 +01:00 committed by Sean Molenaar
parent 67bbd6bfeb
commit 52f1142cd3

View File

@ -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` = ?) ';