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