| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 72 | public function extract() |
||
| 73 | { |
||
| 74 | $return = array(); |
||
| 75 | |||
| 76 | foreach ($this->fileData as $line) { |
||
| 77 | if (!empty($line)) { |
||
| 78 | $row = array(); |
||
| 79 | $start = 0; |
||
| 80 | foreach ($this->config as $field => $length) { |
||
| 81 | $row[$field] = trim(substr($line, $start, $length)); |
||
| 82 | $start += $length; |
||
| 83 | } |
||
| 84 | $return[] = $row; |
||
| 85 | } |
||
| 86 | } |
||
| 87 | |||
| 88 | return $return; |
||
| 89 | } |
||
| 90 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..