Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.072 |
Changes | 5 | ||
Bugs | 1 | Features | 0 |
1 | <?php namespace Bosnadev\Database\Connectors; |
||
23 | protected function createConnection($driver, $connection, $database, $prefix = '', array $config = array()) |
||
24 | { |
||
25 | if ($this->container->bound($key = "db.connection.{$driver}")) { |
||
26 | return $this->container->make($key, array($connection, $database, $prefix, $config)); |
||
27 | 3 | } |
|
28 | |||
29 | 3 | if ($driver === 'pgsql') { |
|
30 | return new PostgresConnection($connection, $database, $prefix, $config); |
||
31 | } |
||
32 | |||
33 | 3 | return parent::createConnection($driver, $connection, $database, $prefix, $config); |
|
34 | 3 | } |
|
35 | } |
||
36 |