Performance Experiment for the String Table, to avoid creating empty cells; should also be slightly faster

This commit is contained in:
MarkBaker 2022-05-05 10:05:32 +02:00
parent d686a991db
commit b399c09dd5
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ class StringTable extends WriterPart
$aFlippedStringTable = $this->flipStringTable($aStringTable);
// Loop through cells
foreach ($worksheet->getCoordinates() as $coordinate) {
$cell = $worksheet->getCell($coordinate);
foreach ($worksheet->getCellCollection()->getCoordinates() as $coordinate) {
$cell = $worksheet->getCellCollection()->get($coordinate);
$cellValue = $cell->getValue();
if (
!is_object($cellValue) &&