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