original_string: public function setRow($row, $values)
      {
  
          if (!\is_array($values)) {
              \trigger_error("Values must be an array.", E_USER_ERROR);
              return false;
          }
          if (intval($row) < 1) {
              \trigger_error("Row number must be an integer greater than 1.", E_USER_ERROR);
              return false;
          }
  
          $i = 0;
          foreach ($values as $value) {
              $this->setCell(array($row - 1, $i), $value);
              $i++;
          }
  
          return true;
      }
code: public function setRow($row, $values)
      {
  
          if (!\is_array($values)) {
              \trigger_error("Values must be an array.", E_USER_ERROR);
              return false;
          }
          if (intval($row) < 1) {
              \trigger_error("Row number must be an integer greater than 1.", E_USER_ERROR);
              return false;
          }
  
          $i = 0;
          foreach ($values as $value) {
              $this->setCell(array($row - 1, $i), $value);
              $i++;
          }
  
          return true;
      }
code_tokens: public function setRow ( $ row , $ values ) { if ( ! \ is_array ( $ values ) ) { \ trigger_error ( "Values must be an array." , E_USER_ERROR ) ; return false ; } if ( intval ( $ row ) < 1 ) { \ trigger_error ( "Row number must be an integer greater than 1." , E_USER_ERROR ) ; return false ; } $ i = 0 ; foreach ( $ values as $ value ) { $ this -> setCell ( array ( $ row - 1 , $ i ) , $ value ) ; $ i ++ ; } return true ; }
docstring: Set the values for a row
  
  @param integer The Excel row number to place these values
  @param array An array of values
  @return boolean Success
docstring_tokens: Set the values for a row