|
@@ 285-292 (lines=8) @@
|
| 282 |
|
return $reversedOrderingConfigurations; |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
private function existsBeforeCursor(string $previousCursor, AnalysedQuery $analysedQuery) |
| 286 |
|
{ |
| 287 |
|
$nextPager = (new Pager()) |
| 288 |
|
->setBefore($previousCursor) |
| 289 |
|
->setLimit(1); |
| 290 |
|
return count($this->findItems($analysedQuery, $nextPager)) > 0; |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
| 294 |
|
{ |
| 295 |
|
$nextPager = (new Pager()) |
|
@@ 293-300 (lines=8) @@
|
| 290 |
|
return count($this->findItems($analysedQuery, $nextPager)) > 0; |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
| 294 |
|
{ |
| 295 |
|
$nextPager = (new Pager()) |
| 296 |
|
->setAfter($nextCursor) |
| 297 |
|
->setLimit(1); |
| 298 |
|
return count($this->findItems($analysedQuery, $nextPager)) > 0; |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
private function calculateTotalCount(Pager $filter, int $resultCount) |
| 302 |
|
{ |
| 303 |
|
if ( |