| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function writeRow($row) |
||
| 44 | { |
||
| 45 | Assert::isIterable($row, 'Every value of $rows should be an array or an instance of \Traversable.'); |
||
| 46 | |||
| 47 | $separator = ''; |
||
| 48 | |||
| 49 | foreach ($row as $cell) { |
||
| 50 | fwrite($this->out, $separator . $this->formatCell($cell)); |
||
| 51 | |||
| 52 | if ('' === $separator) { |
||
| 53 | $separator = ','; |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | fwrite($this->out, "\r\n"); |
||
| 58 | } |
||
| 59 | |||
| 78 |