|
@@ 129-131 (lines=3) @@
|
| 126 |
|
if ($this->prependHeaderRow && 1 === $this->row) { |
| 127 |
|
$headers = array_keys($item); |
| 128 |
|
|
| 129 |
|
for ($i = 0; $i < $count; $i++) { |
| 130 |
|
$this->spreadsheet->getActiveSheet()->setCellValueByColumnAndRow($i + 1, $this->row, $headers[$i]); |
| 131 |
|
} |
| 132 |
|
$this->row++; |
| 133 |
|
} |
| 134 |
|
|
|
@@ 137-139 (lines=3) @@
|
| 134 |
|
|
| 135 |
|
$values = array_values($item); |
| 136 |
|
|
| 137 |
|
for ($i = 0; $i < $count; $i++) { |
| 138 |
|
$this->spreadsheet->getActiveSheet()->setCellValueByColumnAndRow($i + 1, $this->row, $values[$i]); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
$this->row++; |
| 142 |
|
} |