| Conditions | 5 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 88 | * |
||
| 89 | * @return bool |
||
| 90 | * Return true or false. |
||
| 91 | */ |
||
| 92 | 6 | protected function nextHelper() { |
|
| 93 | 6 | $i = $this->length - 1; |
|
| 94 | 6 | while ($i >= 0 && $this->c[$i] == $this->datasetCount - $this->length + $i) { |
|
| 95 | 6 | $i--; |
|
| 96 | 6 | } |
|
| 97 | 6 | if ($i < 0) { |
|
| 98 | 6 | return FALSE; |
|
| 99 | } |
||
| 100 | 4 | $this->c[$i]++; |
|
| 101 | 4 | while ($i++ < $this->length - 1) { |
|
| 102 | 4 | $this->c[$i] = $this->c[$i - 1] + 1; |
|
| 103 | 4 | } |
|
| 132 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.