| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 81 | protected function openReader($filePath) |
|
| 41 | { |
||
| 42 | 81 | $this->zip = new \ZipArchive(); |
|
| 43 | |||
| 44 | 81 | if ($this->zip->open($filePath) === true) { |
|
| 45 | 81 | $this->sheetIterator = new SheetIterator($filePath, $this->shouldFormatDates, $this->shouldPreserveEmptyRows); |
|
| 46 | 81 | } else { |
|
| 47 | throw new IOException("Could not open $filePath for reading."); |
||
| 48 | } |
||
| 49 | 81 | } |
|
| 50 | |||
| 73 |