Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 4 | public function handle(): Traversable |
|
35 | { |
||
36 | 4 | $originalUri = $this->config->source->request->getUri(); |
|
37 | 4 | $pages = (int) ceil($this->countItems() / $this->config->perPageOverride); |
|
38 | 4 | $uri = Uri::withQueryValue($originalUri, $this->config->perPageQuery, $this->config->perPageOverride); |
|
39 | |||
40 | 4 | yield from $this->handleByTotalPages($pages, $uri); |
|
41 | 4 | } |
|
61 |