Changing to new Doctrine's coding style.

parent 689df3e5
......@@ -66,9 +66,8 @@ class Driver implements \Doctrine\DBAL\Driver
{
$params = $conn->getParams();
if (isset($params['dbname'])) {
return $params['dbname'];
}
return $conn->query('SELECT CURRENT_DATABASE()')->fetchColumn();
return (isset($params['dbname']))
? $params['dbname']
: $conn->query('SELECT CURRENT_DATABASE()')->fetchColumn();
}
}
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