Formatting DB class.
This commit is contained in:
parent
8056e0d1a7
commit
d0fafd1301
|
@ -25,9 +25,12 @@ public static function connection($connection = null)
|
|||
$connection = Config::get('db.default');
|
||||
}
|
||||
|
||||
return array_key_exists($connection, static::$connections)
|
||||
? static::$connections[$connection]
|
||||
: static::$connections[$connection] = DB\Connector::connect($connection);
|
||||
if ( ! array_key_exists($connection, static::$connections))
|
||||
{
|
||||
static::$connections[$connection] = DB\Connector::connect($connection);
|
||||
}
|
||||
|
||||
return static::$connections[$connection];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue