original_string: protected function addRowToWriter(array $dataRow, $style)
      {
          $this->throwIfBookIsNotAvailable();
          $this->book->addRowToCurrentWorksheet($dataRow, $style);
      }
code: protected function addRowToWriter(array $dataRow, $style)
      {
          $this->throwIfBookIsNotAvailable();
          $this->book->addRowToCurrentWorksheet($dataRow, $style);
      }
code_tokens: protected function addRowToWriter ( array $ dataRow , $ style ) { $ this -> throwIfBookIsNotAvailable ( ) ; $ this -> book -> addRowToCurrentWorksheet ( $ dataRow , $ style ) ; }
docstring: Adds data to the currently opened writer.
  If shouldCreateNewSheetsAutomatically option is set to true, it will handle pagination
  with the creation of new worksheets if one worksheet has reached its maximum capicity.
  
  @param array $dataRow Array containing data to be written.
  Example $dataRow = ['data1', 1234, null, '', 'data5'];
  @param \Box\Spout\Writer\Style\Style $style Style to be applied to the row.
  @return void
  @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the book is not created yet
  @throws \Box\Spout\Common\Exception\IOException If unable to write data
docstring_tokens: Adds data to the currently opened writer . If shouldCreateNewSheetsAutomatically option is set to true it will handle pagination with the creation of new worksheets if one worksheet has reached its maximum capicity .