original_string: private function getRows($results) {
      $table = '<h3>Rows Of Data</h3>';
  
      if (count($results->getRows()) > 0) {
        $table .= '<table>';
  
        // Print headers.
        $table .= '<tr>';
  
        foreach ($results->getColumnHeaders() as $header) {
          $table .= '<th>' . $header->name . '</th>';
        }
        $table .= '</tr>';
  
        // Print table rows.
        foreach ($results->getRows() as $row) {
          $table .= '<tr>';
            foreach ($row as $cell) {
              $table .= '<td>'
                     . htmlspecialchars($cell, ENT_NOQUOTES)
                     . '</td>';
            }
          $table .= '</tr>';
        }
        $table .= '</table>';
  
      } else {
        $table .= '<p>No results found.</p>';
      }
  
      return $table;
    }
code: private function getRows($results) {
      $table = '<h3>Rows Of Data</h3>';
  
      if (count($results->getRows()) > 0) {
        $table .= '<table>';
  
        // Print headers.
        $table .= '<tr>';
  
        foreach ($results->getColumnHeaders() as $header) {
          $table .= '<th>' . $header->name . '</th>';
        }
        $table .= '</tr>';
  
        // Print table rows.
        foreach ($results->getRows() as $row) {
          $table .= '<tr>';
            foreach ($row as $cell) {
              $table .= '<td>'
                     . htmlspecialchars($cell, ENT_NOQUOTES)
                     . '</td>';
            }
          $table .= '</tr>';
        }
        $table .= '</table>';
  
      } else {
        $table .= '<p>No results found.</p>';
      }
  
      return $table;
    }
code_tokens: private function getRows ( $ results ) { $ table = '<h3>Rows Of Data</h3>' ; if ( count ( $ results -> getRows ( ) ) > 0 ) { $ table .= '<table>' ; // Print headers. $ table .= '<tr>' ; foreach ( $ results -> getColumnHeaders ( ) as $ header ) { $ table .= '<th>' . $ header -> name . '</th>' ; } $ table .= '</tr>' ; // Print table rows. foreach ( $ results -> getRows ( ) as $ row ) { $ table .= '<tr>' ; foreach ( $ row as $ cell ) { $ table .= '<td>' . htmlspecialchars ( $ cell , ENT_NOQUOTES ) . '</td>' ; } $ table .= '</tr>' ; } $ table .= '</table>' ; } else { $ table .= '<p>No results found.</p>' ; } return $ table ; }
docstring: Returns the rows of data as an HTML Table.
  @param GaData $results The results from the Core Reporting API.
  @return string The formatted results.
docstring_tokens: Returns the rows of data as an HTML Table .