diff --git a/src/Spout/Writer/CSV/Writer.php b/src/Spout/Writer/CSV/Writer.php index 4327902..a7e72fe 100644 --- a/src/Spout/Writer/CSV/Writer.php +++ b/src/Spout/Writer/CSV/Writer.php @@ -66,6 +66,10 @@ class Writer extends AbstractWriter $this->globalFunctionsHelper->fputs($this->filePointer, EncodingHelper::BOM_UTF8); } + public function registerStyle($style) { + return false; + } + /** * Adds data to the currently opened writer. * diff --git a/src/Spout/Writer/Common/Internal/AbstractWorkbook.php b/src/Spout/Writer/Common/Internal/AbstractWorkbook.php index ca16a29..c8f9f9f 100644 --- a/src/Spout/Writer/Common/Internal/AbstractWorkbook.php +++ b/src/Spout/Writer/Common/Internal/AbstractWorkbook.php @@ -167,11 +167,6 @@ abstract class AbstractWorkbook implements WorkbookInterface } } - public function applyStyleToCurrentWorksheet($style) { - $updatedStyle = $styleHelper->applyExtraStylesIfNeeded($style, array()); - $registeredStyle = $styleHelper->registerStyle($updatedStyle); - } - /** * @return bool Whether the current worksheet has reached the maximum number of rows per sheet. */ diff --git a/src/Spout/Writer/ODS/Writer.php b/src/Spout/Writer/ODS/Writer.php index 4b35dfd..68e8972 100644 --- a/src/Spout/Writer/ODS/Writer.php +++ b/src/Spout/Writer/ODS/Writer.php @@ -61,6 +61,10 @@ class Writer extends AbstractMultiSheetsWriter return $this->book; } + public function registerStyle($style) { + return false; + } + /** * Adds data to the currently opened writer. * If shouldCreateNewSheetsAutomatically option is set to true, it will handle pagination diff --git a/test.php b/test.php index a7fbdbf..4652fc7 100644 --- a/test.php +++ b/test.php @@ -5,7 +5,6 @@ include_once 'src/Spout/Autoloader/autoload.php'; use Box\Spout\Common\Type; use Box\Spout\Writer\WriterFactory; use Box\Spout\Writer\Style\StyleBuilder; -use Box\Spout\Writer\Style\Color; # UNIX_DATE = (EXCEL_DATE - 25569) * 86400 : Excel -> unix # EXCEL_DATE = 25569 + (UNIX_DATE / 86400) : Unix -> excel