original_string: protected static function initDB() {
          $dbConfig = static::getConfig('db', static::getServer());
          static::$db = new Connection($dbConfig['dsn'], $dbConfig['user'], $dbConfig['password'], $dbConfig['options']);
          static::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  
          if (!empty($dbConfig['tablePrefix']))
              static::$db->setTablePrefix($dbConfig['tablePrefix']);
      }
code: protected static function initDB() {
          $dbConfig = static::getConfig('db', static::getServer());
          static::$db = new Connection($dbConfig['dsn'], $dbConfig['user'], $dbConfig['password'], $dbConfig['options']);
          static::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  
          if (!empty($dbConfig['tablePrefix']))
              static::$db->setTablePrefix($dbConfig['tablePrefix']);
      }
code_tokens: protected static function initDB ( ) { $ dbConfig = static :: getConfig ( 'db' , static :: getServer ( ) ) ; static :: $ db = new Connection ( $ dbConfig [ 'dsn' ] , $ dbConfig [ 'user' ] , $ dbConfig [ 'password' ] , $ dbConfig [ 'options' ] ) ; static :: $ db -> setAttribute ( PDO :: ATTR_ERRMODE , PDO :: ERRMODE_EXCEPTION ) ; if ( ! empty ( $ dbConfig [ 'tablePrefix' ] ) ) static :: $ db -> setTablePrefix ( $ dbConfig [ 'tablePrefix' ] ) ; }
docstring: Creates a database connection using \DBScribe\Connection
docstring_tokens: Creates a database connection using \ DBScribe \ Connection