original_string: public function importScheme($table, array $scheme)
      {
          if ($this->tableExists($table)) {
              throw new RuntimeException('Table already exists');
          }
  
          try {
              $this->import($scheme);
          } catch (Exception $ex) {
              $this->deleteTable($table);
              throw new RuntimeException("Failed to import database table $table: " . $ex->getMessage());
          }
      }
code: public function importScheme($table, array $scheme)
      {
          if ($this->tableExists($table)) {
              throw new RuntimeException('Table already exists');
          }
  
          try {
              $this->import($scheme);
          } catch (Exception $ex) {
              $this->deleteTable($table);
              throw new RuntimeException("Failed to import database table $table: " . $ex->getMessage());
          }
      }
code_tokens: public function importScheme ( $ table , array $ scheme ) { if ( $ this -> tableExists ( $ table ) ) { throw new RuntimeException ( 'Table already exists' ) ; } try { $ this -> import ( $ scheme ) ; } catch ( Exception $ ex ) { $ this -> deleteTable ( $ table ) ; throw new RuntimeException ( "Failed to import database table $table: " . $ ex -> getMessage ( ) ) ; } }
docstring: Install a database table using the scheme
  @param string $table
  @param array $scheme
  @throws RuntimeException
docstring_tokens: Install a database table using the scheme