Conditions | 5 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
88 | 6 | protected function _next() { |
|
89 | 6 | $i = $this->length - 1; |
|
90 | 6 | while ($i >= 0 && $this->c[$i] == $this->datasetCount - $this->length + $i) { |
|
91 | 6 | $i--; |
|
92 | } |
||
93 | 6 | if ($i < 0) { |
|
94 | 6 | return FALSE; |
|
1 ignored issue
–
show
|
|||
95 | } |
||
96 | 4 | $this->c[$i]++; |
|
97 | 4 | while ($i++ < $this->length - 1) { |
|
98 | 4 | $this->c[$i] = $this->c[$i - 1] + 1; |
|
99 | } |
||
100 | |||
101 | 4 | return TRUE; |
|
102 | } |
||
103 | |||
125 |
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.