| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 7 |
| Ratio | 77.78 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 107 | 6 | View Code Duplication | public function toArray() { |
| 108 | 6 | $data = []; |
|
| 109 | |||
| 110 | 6 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
| 111 | 6 | $data[] = $this->current(); |
|
| 112 | 6 | } |
|
| 113 | |||
| 114 | 6 | return $data; |
|
| 115 | } |
||
| 116 | |||
| 125 |
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.