@@ -17,8 +17,8 @@ |
||
| 17 | 17 | public $timeout; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @inheritDoc |
|
| 21 | - */ |
|
| 20 | + * @inheritDoc |
|
| 21 | + */ |
|
| 22 | 22 | public function open(string $database, string $schema = '') |
| 23 | 23 | { |
| 24 | 24 | $server = str_replace(":", "' port='", addcslashes($this->driver->options('server'), "'\\")); |
@@ -91,11 +91,9 @@ |
||
| 91 | 91 | { |
| 92 | 92 | if (extension_loaded("pgsql")) { |
| 93 | 93 | $connection = new Db\PgSql\Connection($this, $this->util, $this->trans, 'PgSQL'); |
| 94 | - } |
|
| 95 | - elseif (extension_loaded("pdo_pgsql")) { |
|
| 94 | + } elseif (extension_loaded("pdo_pgsql")) { |
|
| 96 | 95 | $connection = new Db\Pdo\Connection($this, $this->util, $this->trans, 'PDO_PgSQL'); |
| 97 | - } |
|
| 98 | - else { |
|
| 96 | + } else { |
|
| 99 | 97 | throw new AuthException($this->trans->lang('No package installed to connect to a PostgreSQL server.')); |
| 100 | 98 | } |
| 101 | 99 | |