Conditions | 5 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
98 | 4 | protected function nextHelper() |
|
99 | { |
||
100 | 4 | $i = $this->length - 1; |
|
101 | 4 | while ($i >= 0 && $this->c[$i] == $this->datasetCount - $this->length + $i) { |
|
102 | 4 | $i--; |
|
103 | 4 | } |
|
104 | 4 | if ($i < 0) { |
|
105 | 4 | return false; |
|
106 | } |
||
107 | 3 | $this->c[$i]++; |
|
108 | 3 | while ($i++ < $this->length - 1) { |
|
109 | 3 | $this->c[$i] = $this->c[$i - 1] + 1; |
|
110 | 3 | } |
|
111 | |||
112 | 3 | return true; |
|
113 | } |
||
114 | |||
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.