Skip to content

Commit

Permalink
Fix parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Apr 15, 2019
1 parent cffb35c commit 57a8687
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ public function getNextLink(string $uri, string $queryString): ?Link
return $this->createPaginatedLink($uri, $queryString, $this->getOffset() + $this->getLimit(), $this->getLimit());
}

protected function createPaginatedLink(string $uri, string $queryString, int $page, int $size): ?Link
protected function createPaginatedLink(string $uri, string $queryString, int $offset, int $limit): ?Link
{
if ($this->getTotalItems() <= 0 || $this->getLimit() <= 0) {
return null;
}

return new Link(
Utils::getUri($uri, $queryString, OffsetBasedPagination::getPaginationQueryString($page, $size))
Utils::getUri($uri, $queryString, OffsetBasedPagination::getPaginationQueryString($offset, $limit))
);
}
}

0 comments on commit 57a8687

Please sign in to comment.