Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 7 |
Ratio | 77.78 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
114 | 6 | View Code Duplication | public function toArray() { |
115 | 6 | $data = []; |
|
116 | |||
117 | 6 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
118 | 6 | $data[] = $this->current(); |
|
119 | 6 | } |
|
120 | |||
121 | 6 | return $data; |
|
122 | } |
||
123 | |||
132 |
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.