| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | protected function handleByNextPage(): Traversable |
||
| 50 | { |
||
| 51 | $request = clone $this->config->source->request; |
||
| 52 | |||
| 53 | yield from $this->config->source->json($this->config->path); |
||
| 54 | |||
| 55 | while ($this->config->nextPage) { |
||
| 56 | $uri = Uri::withQueryValue($request->getUri(), $this->config->pageName, $this->config->nextPage); |
||
| 57 | $this->config->source = new SourceWrapper($request->withUri($uri)); |
||
| 58 | $this->config->nextPage($this->config->nextPageKey); |
||
| 59 | yield from $this->handleByNextPage(); |
||
| 60 | } |
||
| 63 |