| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 73 | protected function getMoreResults() |
||
| 74 | { |
||
| 75 | $i = 0; |
||
| 76 | while ($i++ < $this->rateLimitRetryAttempts) { |
||
| 77 | try { |
||
| 78 | $extraResults = $this->reviews->get(); |
||
| 79 | $this->array = array_merge($this->array, $extraResults->getArray()); |
||
| 80 | break; |
||
| 81 | } catch (RateLimit $exception) { |
||
| 82 | sleep($exception->getTimeout()); |
||
| 83 | continue; |
||
| 84 | } catch (BaseException $exception) { |
||
| 85 | throw $exception; |
||
| 86 | } |
||
| 90 |