@@ -123,8 +123,9 @@ |
||
123 | 123 | */ |
124 | 124 | protected function makeRows(&$writer) |
125 | 125 | { |
126 | - if ( ! empty($headerRow = $this->serializer->getHeader())) |
|
127 | - $writer->addRow($headerRow); |
|
126 | + if ( ! empty($headerRow = $this->serializer->getHeader())) { |
|
127 | + $writer->addRow($headerRow); |
|
128 | + } |
|
128 | 129 | |
129 | 130 | foreach ($this->data as $record) { |
130 | 131 | $writer->addRow( |
@@ -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( |