Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 7 |
Ratio | 70 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
98 | 4 | View Code Duplication | public function toArray() |
99 | { |
||
100 | 4 | $data = []; |
|
101 | |||
102 | 4 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
103 | 4 | $data[] = $this->current(); |
|
104 | 4 | } |
|
105 | |||
106 | 4 | return $data; |
|
107 | } |
||
108 | |||
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.