Fixed some scrutinizer issues

This commit is contained in:
Gerard Krom 2016-05-05 17:02:18 +02:00
parent 6705219f41
commit e4ccef8592
4 changed files with 8 additions and 6 deletions

View File

@ -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.
*

View File

@ -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.
*/

View File

@ -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

View File

@ -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