| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | trait YieldsItemsByLength |
||
| 16 | { |
||
| 17 | use SendsAsyncRequests; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Yield paginated items until the page resolved from the given key is reached. |
||
| 21 | * |
||
| 22 | * @param ?Closure(int): int $callback |
||
| 23 | * @return Generator<int, mixed> |
||
| 24 | */ |
||
| 25 | 42 | protected function yieldItemsUntilKey(string $key, ?Closure $callback = null): Generator |
|
| 35 | 42 | }); |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Yield paginated items until the resolved page is reached. |
||
| 40 | * |
||
| 41 | * @param Closure(ResponseInterface): Generator<int, mixed> $callback |
||
| 42 | * @return Generator<int, mixed> |
||
| 43 | */ |
||
| 44 | 44 | protected function yieldItemsUntilPage(Closure $callback): Generator |
|
| 56 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.