| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 23 | public function parse() | ||
| 24 |     {
 | ||
| 25 |         $headers = array_map('trim', fgetcsv($this->file, 4096));
 | ||
| 26 |         while (!feof($this->file)) {
 | ||
| 27 |             $row = array_map('trim', (array)fgetcsv($this->file, 4096));
 | ||
| 28 |             if (count($headers) !== count($row)) {
 | ||
| 29 | continue; | ||
| 30 | } | ||
| 31 | $row = array_combine($headers, $row); | ||
| 32 | yield $row; | ||
| 33 | } | ||
| 34 | return; | ||
| 35 | } | ||
| 36 | } |