| Conditions | 7 |
| Paths | 5 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | protected function checkElementsInput(QueryResult &$entryObjects) |
||
| 23 | { |
||
| 24 | $res = $entryObjects->results; |
||
| 25 | if (!(is_array($res) || $res instanceof Collection)) { |
||
| 26 | throw new InvalidOperationException('!is_array($entryObjects->results)'); |
||
| 27 | } |
||
| 28 | if (is_array($res) && 0 == count($res)) { |
||
| 29 | $entryObjects->hasMore = false; |
||
| 30 | } |
||
| 31 | if ($res instanceof Collection && 0 == $res->count()) { |
||
| 32 | $entryObjects->hasMore = false; |
||
| 33 | } |
||
| 49 |