original_string: public function addRow($data, $rowId = null)
      {
          if (($rowId === null) && isset($data['id'])) {
              $rowId = $data['id'];
          }
  
          if ($rowId === null) {
              $rowId = count($this->rows);
          }
  
          $this->rows[$rowId] = $data;
  
          return $this;
      }
code: public function addRow($data, $rowId = null)
      {
          if (($rowId === null) && isset($data['id'])) {
              $rowId = $data['id'];
          }
  
          if ($rowId === null) {
              $rowId = count($this->rows);
          }
  
          $this->rows[$rowId] = $data;
  
          return $this;
      }
code_tokens: public function addRow ( $ data , $ rowId = null ) { if ( ( $ rowId === null ) && isset ( $ data [ 'id' ] ) ) { $ rowId = $ data [ 'id' ] ; } if ( $ rowId === null ) { $ rowId = count ( $ this -> rows ) ; } $ this -> rows [ $ rowId ] = $ data ; return $ this ; }
docstring: Add a row.
  
  @param array    $data  The row data.
  
  @param null|int $rowId The id for the row.
  
  @return FakeResult
docstring_tokens: Add a row .