original_string: public function getTableCols(string $table): array
      {
          $schema = $this->conn->getSchemaManager();
          $tableCols = $schema->listTableColumns($table);
          $cols = [];
          foreach ($tableCols as $col) {
              $cols[$col->getName()] = [
                  'length' => $col->getLength(),
                  'type' => $col->getType(),
                  'unsigned' => $col->getUnsigned(),
              ];
          }
  
          return $cols;
      }
code: public function getTableCols(string $table): array
      {
          $schema = $this->conn->getSchemaManager();
          $tableCols = $schema->listTableColumns($table);
          $cols = [];
          foreach ($tableCols as $col) {
              $cols[$col->getName()] = [
                  'length' => $col->getLength(),
                  'type' => $col->getType(),
                  'unsigned' => $col->getUnsigned(),
              ];
          }
  
          return $cols;
      }
code_tokens: public function getTableCols ( string $ table ) : array { $ schema = $ this -> conn -> getSchemaManager ( ) ; $ tableCols = $ schema -> listTableColumns ( $ table ) ; $ cols = [ ] ; foreach ( $ tableCols as $ col ) { $ cols [ $ col -> getName ( ) ] = [ 'length' => $ col -> getLength ( ) , 'type' => $ col -> getType ( ) , 'unsigned' => $ col -> getUnsigned ( ) , ] ; } return $ cols ; }
docstring: Retrieve columns list for a table with type and length
  
  @param  string $table
  
  @return array $cols
docstring_tokens: Retrieve columns list for a table with type and length