src/Paginator/RawPaginatorAdapter.php 1 location
|
@@ 165-167 (lines=3) @@
|
| 162 |
|
? (int) $this->query->getParam('size') |
| 163 |
|
: null; |
| 164 |
|
|
| 165 |
|
if (null !== $size && $size < $offset + $itemCountPerPage) { |
| 166 |
|
$itemCountPerPage = $size - $offset; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
if ($itemCountPerPage < 1) { |
| 170 |
|
throw new InvalidArgumentException('$itemCountPerPage must be greater than zero'); |
src/Paginator/RawScrollPaginatorAdapter.php 1 location
|
@@ 171-173 (lines=3) @@
|
| 168 |
|
? (int) $this->query->getParam('size') |
| 169 |
|
: null; |
| 170 |
|
|
| 171 |
|
if (null !== $size && $size < $offset + $itemCountPerPage) { |
| 172 |
|
$itemCountPerPage = $size - $offset; |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
if ($itemCountPerPage < 1) { |
| 176 |
|
throw new InvalidArgumentException('$itemCountPerPage must be greater than zero'); |