Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 29 | protected function createConnection($driver, $connection, $database, $prefix = '', array $config = []) |
|
14 | { |
||
15 | 29 | $resolver = Connection::getResolver($driver); |
|
16 | 29 | if ($resolver) { |
|
17 | 1 | return $resolver($connection, $database, $prefix, $config); |
|
18 | } |
||
19 | |||
20 | 29 | if ($driver === 'pgsql') { |
|
21 | 29 | return new PostgresConnection($connection, $database, $prefix, $config); |
|
22 | } |
||
23 | |||
24 | 1 | return parent::createConnection($driver, $connection, $database, $prefix, $config); |
|
25 | } |
||
27 |