original_string: public function getColumns()
      {
          $result = array();
          foreach ($this->getRows() as $row) {
              $columns = $row->getColumns();
              if (!empty($columns)) {
                  $result = array_keys($columns);
                  break;
              }
          }
  
          // make sure column names are not DB index values
          foreach ($result as &$column) {
              if (isset(Metrics::$mappingFromIdToName[$column])) {
                  $column = Metrics::$mappingFromIdToName[$column];
              }
          }
  
          return $result;
      }
code: public function getColumns()
      {
          $result = array();
          foreach ($this->getRows() as $row) {
              $columns = $row->getColumns();
              if (!empty($columns)) {
                  $result = array_keys($columns);
                  break;
              }
          }
  
          // make sure column names are not DB index values
          foreach ($result as &$column) {
              if (isset(Metrics::$mappingFromIdToName[$column])) {
                  $column = Metrics::$mappingFromIdToName[$column];
              }
          }
  
          return $result;
      }
code_tokens: public function getColumns ( ) { $ result = array ( ) ; foreach ( $ this -> getRows ( ) as $ row ) { $ columns = $ row -> getColumns ( ) ; if ( ! empty ( $ columns ) ) { $ result = array_keys ( $ columns ) ; break ; } } // make sure column names are not DB index values foreach ( $ result as & $ column ) { if ( isset ( Metrics :: $ mappingFromIdToName [ $ column ] ) ) { $ column = Metrics :: $ mappingFromIdToName [ $ column ] ; } } return $ result ; }
docstring: Returns the names of every column this DataTable contains. This method will return the
  columns of the first row with data and will assume they occur in every other row as well.
  
  _ Note: If column names still use their in-database INDEX values (@see Metrics), they
  will be converted to their string name in the array result._
  
  @return array Array of string column names.
docstring_tokens: Returns the names of every column this DataTable contains . This method will return the columns of the first row with data and will assume they occur in every other row as well .