@@ -156,7 +156,9 @@ |
||
| 156 | 156 | $collection = Collection::make(); |
| 157 | 157 | |
| 158 | 158 | foreach ($reader->getSheetIterator() as $index => $sheet) { |
| 159 | - if ($index !== $this->sheet) continue; |
|
| 159 | + if ($index !== $this->sheet) { |
|
| 160 | + continue; |
|
| 161 | + } |
|
| 160 | 162 | |
| 161 | 163 | foreach ($sheet->getRowIterator() as $row) { |
| 162 | 164 | $collection->push( |
@@ -164,8 +164,9 @@ |
||
| 164 | 164 | */ |
| 165 | 165 | protected function makeRows() |
| 166 | 166 | { |
| 167 | - if ( ! empty($headerRow = $this->serializer->getHeader())) |
|
| 168 | - $this->writer->addRow($headerRow); |
|
| 167 | + if ( ! empty($headerRow = $this->serializer->getHeader())) { |
|
| 168 | + $this->writer->addRow($headerRow); |
|
| 169 | + } |
|
| 169 | 170 | |
| 170 | 171 | foreach ($this->data as $record) { |
| 171 | 172 | $this->writer->addRow( |