cleanup, make sure we call the base functions

This commit is contained in:
Lucian Sirbu 2020-05-04 17:39:28 +03:00
parent 488bc371a5
commit e290f45880

View File

@ -298,12 +298,12 @@ EOD;
// create nodes for merge cells
if ($this->optionsManager->getOption(Options::MERGE_CELLS)) {
$mergeCellString = '<mergeCells count="'.count($this->optionsManager->getOption(Options::MERGE_CELLS)).'">';
$mergeCellString = '<mergeCells count="' . \count($this->optionsManager->getOption(Options::MERGE_CELLS)) . '">';
foreach ($this->optionsManager->getOption(Options::MERGE_CELLS) as $values) {
$output = array_map(function($value){
$output = \array_map(function($value){
return CellHelper::getColumnLettersFromColumnIndex($value[0]) . $value[1];
}, $values);
$mergeCellString.= '<mergeCell ref="'.implode(':', $output).'"/>';
$mergeCellString.= '<mergeCell ref="' . \implode(':', $output) . '"/>';
}
$mergeCellString.= '</mergeCells>';
\fwrite($worksheet->getFilePointer(), $mergeCellString);