| Conditions | 4 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function valid() |
||
| 40 | { |
||
| 41 | if (isset($this->array[$this->current])) { |
||
| 42 | return true; |
||
| 43 | } |
||
| 44 | |||
| 45 | $settings = $this->reviews->getSettings(); |
||
| 46 | if ($this->current % $settings['limit'] == 0 && $this->current > 0) { |
||
| 47 | $this->reviews->offset( |
||
| 48 | $settings['limit'] + $settings['offset'] |
||
| 49 | ); |
||
| 50 | |||
| 51 | $this->getMoreResults(); |
||
| 52 | return isset($this->array[$this->current]); |
||
| 53 | } |
||
| 54 | |||
| 55 | return false; |
||
| 56 | } |
||
| 90 |