original_string: protected function addNonEmptyRow($dataRow, $style)
      {
          $cellNumber = 0;
          $rowIndex = $this->lastWrittenRowIndex + 1;
          $numCells = count($dataRow);
  
          $rowXML = '<row r="' . $rowIndex . '" spans="1:' . $numCells . '">';
  
          foreach($dataRow as $cellValue) {
              $rowXML .= $this->getCellXML($rowIndex, $cellNumber, $cellValue, $style->getId());
              $cellNumber++;
          }
  
          $rowXML .= '</row>';
  
          $wasWriteSuccessful = fwrite($this->sheetFilePointer, $rowXML);
          if ($wasWriteSuccessful === false) {
              throw new IOException("Unable to write data in {$this->worksheetFilePath}");
          }
      }
code: protected function addNonEmptyRow($dataRow, $style)
      {
          $cellNumber = 0;
          $rowIndex = $this->lastWrittenRowIndex + 1;
          $numCells = count($dataRow);
  
          $rowXML = '<row r="' . $rowIndex . '" spans="1:' . $numCells . '">';
  
          foreach($dataRow as $cellValue) {
              $rowXML .= $this->getCellXML($rowIndex, $cellNumber, $cellValue, $style->getId());
              $cellNumber++;
          }
  
          $rowXML .= '</row>';
  
          $wasWriteSuccessful = fwrite($this->sheetFilePointer, $rowXML);
          if ($wasWriteSuccessful === false) {
              throw new IOException("Unable to write data in {$this->worksheetFilePath}");
          }
      }
code_tokens: protected function addNonEmptyRow ( $ dataRow , $ style ) { $ cellNumber = 0 ; $ rowIndex = $ this -> lastWrittenRowIndex + 1 ; $ numCells = count ( $ dataRow ) ; $ rowXML = '<row r="' . $ rowIndex . '" spans="1:' . $ numCells . '">' ; foreach ( $ dataRow as $ cellValue ) { $ rowXML .= $ this -> getCellXML ( $ rowIndex , $ cellNumber , $ cellValue , $ style -> getId ( ) ) ; $ cellNumber ++ ; } $ rowXML .= '</row>' ; $ wasWriteSuccessful = fwrite ( $ this -> sheetFilePointer , $ rowXML ) ; if ( $ wasWriteSuccessful === false ) { throw new IOException ( "Unable to write data in {$this->worksheetFilePath}" ) ; } }
docstring: Adds non empty row to the worksheet.
  
  @param array $dataRow Array containing data to be written. Cannot be empty.
  Example $dataRow = ['data1', 1234, null, '', 'data5'];
  @param \Box\Spout\Writer\Style\Style $style Style to be applied to the row. NULL means use default style.
  @return void
  @throws \Box\Spout\Common\Exception\IOException If the data cannot be written
  @throws \Box\Spout\Common\Exception\InvalidArgumentException If a cell value's type is not supported
docstring_tokens: Adds non empty row to the worksheet .