| Conditions | 4 |
| Paths | 6 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | private function getRows() |
||
| 37 | { |
||
| 38 | $radius = $this->config->getRadiusInterval(); |
||
| 39 | $rows = []; |
||
| 40 | |||
| 41 | while ($radius < $this->config->getMaxRadius()) { |
||
| 42 | $this->config->setRadius($radius); |
||
| 43 | $body = (new Transporter)->execute(new Query(new Strategy($this->config))); |
||
| 44 | $rows = $this->dom->load($body)->getElementsByClass('event-listing-container-li') ?: []; |
||
| 45 | $radius += $this->config->getRadiusInterval(); |
||
| 46 | } |
||
| 47 | |||
| 48 | return is_array($rows) ? $rows : $rows->toArray(); |
||
| 49 | } |
||
| 50 | } |