| @@ 301-309 (lines=9) @@ | ||
| 298 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
| 299 | } |
|
| 300 | ||
| 301 | private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
|
| 302 | { |
|
| 303 | $nextPager = (new Pager()) |
|
| 304 | ->setAfter($nextCursor) |
|
| 305 | ->setLimit(1) |
|
| 306 | ; |
|
| 307 | ||
| 308 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
| 309 | } |
|
| 310 | ||
| 311 | private function calculateTotalCount(Pager $filter, int $resultCount) |
|
| 312 | { |
|
| @@ 292-300 (lines=9) @@ | ||
| 289 | return $reversedOrderingConfigurations; |
|
| 290 | } |
|
| 291 | ||
| 292 | private function existsBeforeCursor(string $previousCursor, AnalysedQuery $analysedQuery) |
|
| 293 | { |
|
| 294 | $nextPager = (new Pager()) |
|
| 295 | ->setBefore($previousCursor) |
|
| 296 | ->setLimit(1) |
|
| 297 | ; |
|
| 298 | ||
| 299 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
| 300 | } |
|
| 301 | ||
| 302 | private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
|
| 303 | { |
|
| @@ 302-310 (lines=9) @@ | ||
| 299 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
| 300 | } |
|
| 301 | ||
| 302 | private function existsAfterCursor(string $nextCursor, AnalysedQuery $analysedQuery) |
|
| 303 | { |
|
| 304 | $nextPager = (new Pager()) |
|
| 305 | ->setAfter($nextCursor) |
|
| 306 | ->setLimit(1) |
|
| 307 | ; |
|
| 308 | ||
| 309 | return count($this->findItems($analysedQuery, $nextPager)) > 0; |
|
| 310 | } |
|
| 311 | ||
| 312 | private function calculateTotalCount(Pager $filter, int $resultCount) |
|
| 313 | { |
|