Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 7 |
Ratio | 70 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
121 | 4 | View Code Duplication | public function toArray() |
122 | { |
||
123 | 4 | $data = []; |
|
124 | |||
125 | 4 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
126 | 4 | $data[] = $this->current(); |
|
127 | 4 | } |
|
128 | |||
129 | 4 | return $data; |
|
130 | } |
||
131 | |||
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.