public function addRow(array $row, Style $style = null)
    {
        if (!empty($row)) {
            $style = $style instanceof Style ? $style : $this->styler->getDefaultStyle();
            $this->styler->addStyle($style);
            $this->sheetFile->fwrite($this->sheet->addRow($row, $style));
        }
    }
public function addRow(array $row, Style $style = null)
    {
        if (!empty($row)) {
            $style = $style instanceof Style ? $style : $this->styler->getDefaultStyle();
            $this->styler->addStyle($style);
            $this->sheetFile->fwrite($this->sheet->addRow($row, $style));
        }
    }
public function addRow ( array $ row , Style $ style = null ) { if ( ! empty ( $ row ) ) { $ style = $ style instanceof Style ? $ style : $ this -> styler -> getDefaultStyle ( ) ; $ this -> styler -> addStyle ( $ style ) ; $ this -> sheetFile -> fwrite ( $ this -> sheet -> addRow ( $ row , $ style ) ) ; } }
Add a single new row to the sheet and supply an optional style.

@param array $row
@param Style $style
Add a single new row to the sheet and supply an optional style .