@@ -92,11 +92,9 @@ |
||
92 | 92 | $connection = null; |
93 | 93 | if (extension_loaded("pgsql")) { |
94 | 94 | $connection = new Db\PgSql\Connection($this, $this->util, $this->trans, 'PgSQL'); |
95 | - } |
|
96 | - elseif (extension_loaded("pdo_pgsql")) { |
|
95 | + } elseif (extension_loaded("pdo_pgsql")) { |
|
97 | 96 | $connection = new Db\Pdo\Connection($this, $this->util, $this->trans, 'PDO_PgSQL'); |
98 | - } |
|
99 | - else { |
|
97 | + } else { |
|
100 | 98 | throw new AuthException($this->trans->lang('No package installed to connect to a PostgreSQL server.')); |
101 | 99 | } |
102 | 100 |
@@ -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'), "'\\")); |