Conditions | 5 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
124 | 4 | protected function nextHelper() |
|
125 | { |
||
126 | 4 | $i = $this->length - 1; |
|
127 | 4 | while ($i >= 0 && $this->c[$i] === $this->datasetCount - $this->length + $i) { |
|
128 | 4 | $i--; |
|
129 | 4 | } |
|
130 | 4 | if ($i < 0) { |
|
131 | 4 | return false; |
|
132 | } |
||
133 | 3 | $this->c[$i]++; |
|
134 | 3 | while ($i++ < $this->length - 1) { |
|
135 | 3 | $this->c[$i] = $this->c[$i - 1] + 1; |
|
136 | 3 | } |
|
137 | |||
138 | 3 | return true; |
|
139 | } |
||
140 | } |
||
141 |
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.