Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
23 | 6 | public function __construct(array $dataset = array(), $length = NULL) { |
|
1 ignored issue
–
show
|
|||
24 | 6 | $this->dataset = array_values($dataset); |
|
25 | 6 | $this->count = count($this->dataset); |
|
26 | 6 | $this->length = ($length > $this->count) ? $this->count : $length; |
|
27 | 6 | $this->rewind(); |
|
28 | 6 | } |
|
29 | |||
123 |
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.