From 86ddbd677505521dc0e05e5b50f60d887d9e02f8 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 27 Mar 2023 23:24:12 +0200 Subject: [PATCH] update spreadsheet path --- .gitignore | 1 + classes/Spreadsheet.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 57872d0..a821a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /vendor/ +/.php-cs-fixer.cache diff --git a/classes/Spreadsheet.php b/classes/Spreadsheet.php index 09ce94a..8cf9fff 100644 --- a/classes/Spreadsheet.php +++ b/classes/Spreadsheet.php @@ -62,8 +62,7 @@ class Spreadsheet { $this->spreadsheet->setActiveSheetIndex(0); $writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($this->spreadsheet); - $writer->save('/home/pille/spreadsheet.xlsx'); - // $writer->save(sys_get_temp_dir().'/spreadsheet.xlsx'); + $writer->save(sys_get_temp_dir().'/spreadsheet.xlsx'); $this->spreadsheet->disconnectWorksheets(); unset($this->spreadsheet);