diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2022-03-18 11:00:17 +0100 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-03-18 11:54:02 +0100 |
commit | c49e0fb4f43d6bda80eae9d075ff49e346e1dee4 (patch) | |
tree | 1d60eac0f532259010a10d559d402099d40577b9 /lib/Db | |
parent | 409640818b3fb7d1ff4855d9665eb2eea4cfaee7 (diff) |
rename maxItemId to newestItemId to match docs
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/FolderMapperV2.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Db/FolderMapperV2.php b/lib/Db/FolderMapperV2.php index 7654d5a78..ea2edee91 100644 --- a/lib/Db/FolderMapperV2.php +++ b/lib/Db/FolderMapperV2.php @@ -101,14 +101,14 @@ class FolderMapperV2 extends NewsMapperV2 /** * @param string $userId * @param int $id - * @param int|null $maxItemID + * @param int|null $maxItemId * * @return int * * @throws DBException * */ - public function read(string $userId, int $id, ?int $maxItemID = null): int + public function read(string $userId, int $id, ?int $maxItemId = null): int { $idBuilder = $this->db->getQueryBuilder(); $idBuilder->select('items.id') @@ -119,9 +119,9 @@ class FolderMapperV2 extends NewsMapperV2 ->setParameter('userId', $userId) ->setParameter('folderId', $id); - if ($maxItemID !== null) { + if ($maxItemId !== null) { $idBuilder->andWhere('items.id <= :maxItemId') - ->setParameter('maxItemId', $maxItemID); + ->setParameter('maxItemId', $maxItemId); } $idList = array_map(function ($value): int { |