We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9375e3 commit f2ce3d4Copy full SHA for f2ce3d4
src/Jenssegers/Mongodb/Connection.php
@@ -127,8 +127,7 @@ public function getDatabaseName()
127
*/
128
protected function getDefaultDatabaseName($dsn, $config)
129
{
130
- if(empty($config['database'])){
131
-
+ if (empty($config['database'])) {
132
if (preg_match('/^mongodb:\\/\\/.+\\/([^?&]+)/s', $dsn, $matches)) {
133
$config['database'] = $matches[1];
134
} else {
0 commit comments