Merge pull request #97 from box/add_bool_type_xlsx_writer

Add boolean type when writing XLSX cell
This commit is contained in:
Adrien Loison 2015-08-25 23:53:46 -07:00
commit 108a92e259

View File

@ -143,7 +143,9 @@ EOD;
$sharedStringId = $this->sharedStringsHelper->writeString($cellValue);
$data .= ' t="s"><v>' . $sharedStringId . '</v></c>' . PHP_EOL;
}
} else if (CellHelper::isNumeric($cellValue) || CellHelper::isBoolean($cellValue)) {
} else if (CellHelper::isBoolean($cellValue)) {
$data .= ' t="b"><v>' . $cellValue . '</v></c>' . PHP_EOL;
} else if (CellHelper::isNumeric($cellValue)) {
$data .= '><v>' . $cellValue . '</v></c>' . PHP_EOL;
} else if (empty($cellValue)) {
$data .= '/>' . PHP_EOL;