getFilename(__FILE__); $writer = \PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Excel2007'); $writer->setIncludeCharts(true); $callStartTime = microtime(true); $writer->save($filename); $helper->logWrite($writer, $filename, $callStartTime);