original_string: public function getTableColumns($tableName)
      {
          $db = $this->getDb();
  
          $allColumns = $db->fetchAll("SHOW COLUMNS FROM " . $tableName);
  
          $fields = array();
          foreach ($allColumns as $column) {
              $fields[trim($column['Field'])] = $column;
          }
  
          return $fields;
      }
code: public function getTableColumns($tableName)
      {
          $db = $this->getDb();
  
          $allColumns = $db->fetchAll("SHOW COLUMNS FROM " . $tableName);
  
          $fields = array();
          foreach ($allColumns as $column) {
              $fields[trim($column['Field'])] = $column;
          }
  
          return $fields;
      }
code_tokens: public function getTableColumns ( $ tableName ) { $ db = $ this -> getDb ( ) ; $ allColumns = $ db -> fetchAll ( "SHOW COLUMNS FROM " . $ tableName ) ; $ fields = array ( ) ; foreach ( $ allColumns as $ column ) { $ fields [ trim ( $ column [ 'Field' ] ) ] = $ column ; } return $ fields ; }
docstring: Get list of installed columns in a table
  
  @param  string $tableName The name of a table.
  
  @return array  Installed columns indexed by the column name.
docstring_tokens: Get list of installed columns in a table