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