| @@ 90-92 (lines=3) @@ | ||
| 87 |         if ($this->prependHeaderRow && 1 == $this->row) { | |
| 88 | $headers = array_keys($item); | |
| 89 | ||
| 90 |             for ($i = 0; $i < $count; ++$i) { | |
| 91 | $this->excel->getActiveSheet()->setCellValueByColumnAndRow($i, $this->row, $headers[$i]); | |
| 92 | } | |
| 93 | ++$this->row; | |
| 94 | } | |
| 95 | ||
| @@ 98-100 (lines=3) @@ | ||
| 95 | ||
| 96 | $values = array_values($item); | |
| 97 | ||
| 98 |         for ($i = 0; $i < $count; ++$i) { | |
| 99 | $this->excel->getActiveSheet()->setCellValueByColumnAndRow($i, $this->row, $values[$i]); | |
| 100 | } | |
| 101 | ||
| 102 | ++$this->row; | |
| 103 | } | |