| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | 1 | public function getReader(\SplFileObject $file) |
|
| 66 | { |
||
| 67 | 1 | $reader = new CsvReader($file, $this->delimiter, $this->enclosure, $this->escape); |
|
| 68 | 1 | if (null !== $this->headerRowNumber) { |
|
| 69 | 1 | $reader->setHeaderRowNumber($this->headerRowNumber); |
|
| 70 | 1 | } |
|
| 71 | |||
| 72 | 1 | $reader->setStrict($this->strict); |
|
| 73 | |||
| 74 | 1 | return $reader; |
|
| 75 | } |
||
| 76 | } |
||
| 77 |