cosmetic
This commit is contained in:
parent
d2c6d51bdb
commit
8b79df5a75
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user