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