Commit d0fafd13 by Taylor Otwell

Formatting DB class.

parent 8056e0d1
...@@ -25,9 +25,12 @@ class DB { ...@@ -25,9 +25,12 @@ class DB {
$connection = Config::get('db.default'); $connection = Config::get('db.default');
} }
return array_key_exists($connection, static::$connections) if ( ! array_key_exists($connection, static::$connections))
? static::$connections[$connection] {
: static::$connections[$connection] = DB\Connector::connect($connection); static::$connections[$connection] = DB\Connector::connect($connection);
}
return static::$connections[$connection];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment