| Conditions | 5 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 75 | 6 | protected function _next() { |
|
| 76 | 6 | $i = $this->length - 1; |
|
| 77 | 6 | while ($i >= 0 && $this->c[$i] == $this->count - $this->length + $i) { |
|
| 78 | 6 | $i--; |
|
| 79 | 6 | } |
|
| 80 | 6 | if($i < 0) { |
|
| 81 | 6 | return FALSE; |
|
|
1 ignored issue
–
show
|
|||
| 82 | } |
||
| 83 | 4 | $this->c[$i]++; |
|
| 84 | 4 | while($i++ < $this->length - 1) { |
|
| 85 | 4 | $this->c[$i] = $this->c[$i - 1] + 1; |
|
| 86 | 4 | } |
|
| 87 | |||
| 88 | 4 | return TRUE; |
|
| 89 | } |
||
| 90 | |||
| 123 |
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.