@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Serialize; |
| 3 | 3 | |
| 4 | -require_once dirname(__FILE__) . '/../libs/PHPExcel/Classes/PHPExcel.php'; |
|
| 4 | +require_once dirname(__FILE__).'/../libs/PHPExcel/Classes/PHPExcel.php'; |
|
| 5 | 5 | |
| 6 | 6 | class ExcelSerializer extends SpreadSheetSerializer |
| 7 | 7 | { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | for($j = 0; $j < $colCount; $j++) |
| 33 | 33 | { |
| 34 | 34 | $colName = $keys[$j]; |
| 35 | - $sheat->setCellValueByColumnAndRow($j, 2+$i, $data[$i][$j]); |
|
| 35 | + $sheat->setCellValueByColumnAndRow($j, 2 + $i, $data[$i][$j]); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | if(strcasecmp($type, 'xlsx') === 0 || strcasecmp($type, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') === 0) |