Attempt to satisfy php-cs-fixer
This commit is contained in:
1 parent
bb83904083
commit
ffec80422b
6 files changed
+32
-30
No files matched your search
@@ -50,14 +50,15 @@ abstract class WriterMultiSheetsAbstract extends WriterAbstract
|
||||
* This must be set before opening the writer.
|
||||
*
|
||||
* @param bool $shouldCreateNewSheetsAutomatically Whether new sheets should be automatically created when the max rows limit per sheet is reached
|
||||
* @return WriterMultiSheetsAbstract
|
||||
* @throws WriterAlreadyOpenedException If the writer was already opened
|
||||
* @return WriterMultiSheetsAbstract
|
||||
*/
|
||||
public function setShouldCreateNewSheetsAutomatically($shouldCreateNewSheetsAutomatically)
|
||||
{
|
||||
$this->throwIfWriterAlreadyOpened('Writer must be configured before opening it.');
|
||||
|
||||
$this->optionsManager->setOption(Options::SHOULD_CREATE_NEW_SHEETS_AUTOMATICALLY, $shouldCreateNewSheetsAutomatically);
|
||||
$this->optionsManager->setOption(Options::SHOULD_CREATE_NEW_SHEETS_AUTOMATICALLY,
|
||||
$shouldCreateNewSheetsAutomatically);
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -97,9 +98,9 @@ abstract class WriterMultiSheetsAbstract extends WriterAbstract
|
||||
/**
|
||||
* Creates a new sheet and make it the current sheet. The data will now be written to this sheet.
|
||||
*
|
||||
* @return Sheet The created sheet
|
||||
* @throws IOException
|
||||
* @throws WriterNotOpenedException If the writer has not been opened yet
|
||||
* @return Sheet The created sheet
|
||||
*/
|
||||
public function addNewSheetAndMakeItCurrent()
|
||||
{
|
||||
@@ -112,8 +113,8 @@ abstract class WriterMultiSheetsAbstract extends WriterAbstract
|
||||
/**
|
||||
* Returns the current sheet
|
||||
*
|
||||
* @return Sheet The current sheet
|
||||
* @throws WriterNotOpenedException If the writer has not been opened yet
|
||||
* @return Sheet The current sheet
|
||||
*/
|
||||
public function getCurrentSheet()
|
||||
{
|
||||
@@ -127,9 +128,9 @@ abstract class WriterMultiSheetsAbstract extends WriterAbstract
|
||||
* The writing will resume where it stopped (i.e. data won't be truncated).
|
||||
*
|
||||
* @param Sheet $sheet The sheet to set as current
|
||||
* @return void
|
||||
* @throws SheetNotFoundException If the given sheet does not exist in the workbook
|
||||
* @throws WriterNotOpenedException If the writer has not been opened yet
|
||||
* @return void
|
||||
*/
|
||||
public function setCurrentSheet($sheet)
|
||||
{
|
||||
@@ -183,8 +184,8 @@ abstract class WriterMultiSheetsAbstract extends WriterAbstract
|
||||
/**
|
||||
* Checks if the workbook has been created. Throws an exception if not created yet.
|
||||
*
|
||||
* @return void
|
||||
* @throws WriterNotOpenedException If the workbook is not created yet
|
||||
* @return void
|
||||
*/
|
||||
protected function throwIfWorkbookIsNotAvailable()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user