| Conditions | 5 |
| Paths | 6 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 99 | 5 | protected function nextHelper(): bool |
|
| 100 | { |
||
| 101 | 5 | $i = $this->length - 1; |
|
| 102 | |||
| 103 | 5 | while (0 <= $i && $this->datasetCount - $this->length + $i === $this->c[$i]) { |
|
| 104 | 5 | --$i; |
|
| 105 | } |
||
| 106 | |||
| 107 | 5 | if (0 > $i) { |
|
| 108 | 5 | return false; |
|
| 109 | } |
||
| 110 | |||
| 111 | 4 | ++$this->c[$i]; |
|
| 112 | |||
| 113 | 4 | while ($this->length - 1 > $i++) { |
|
| 114 | 4 | $this->c[$i] = $this->c[$i - 1] + 1; |
|
| 115 | } |
||
| 116 | |||
| 117 | 4 | return true; |
|
| 118 | } |
||
| 120 |