This commit is contained in:
Jephté Clain 2024-11-29 19:30:26 +04:00
parent d2c6d51bdb
commit 8b79df5a75

View File

@ -316,7 +316,7 @@ class SpoutBuilder extends AbstractBuilder {
return false; return false;
} }
function _write(array $row, ?array $colsStyle=null, ?array $rowStyle=null): void { function _write(array $row, ?array $colStyles=null, ?array $rowStyle=null): void {
$sheetParams = $this->sheetParams; $sheetParams = $this->sheetParams;
$headerStyle = $sheetParams["header_style"] ?? null; $headerStyle = $sheetParams["header_style"] ?? null;
$oddStyle = $sheetParams["odd_style"] ?? null; $oddStyle = $sheetParams["odd_style"] ?? null;
@ -326,7 +326,7 @@ class SpoutBuilder extends AbstractBuilder {
$cells = []; $cells = [];
foreach ($row as $key => $col) { foreach ($row as $key => $col) {
$style = $colsStyle[$key] ?? null; $style = $colStyles[$key] ?? null;
self::ensure_style($style); self::ensure_style($style);
if ($col === null || $col === "") { if ($col === null || $col === "") {
$type = Cell::TYPE_EMPTY; $type = Cell::TYPE_EMPTY;