mirror of
https://github.com/opencultureconsulting/oai-pmh2.git
synced 2025-03-30 00:00:30 +01:00
Streamline coding style
This commit is contained in:
parent
5bf5be07ae
commit
0ba2963ea3
@ -416,8 +416,11 @@ final class EntityManager extends EntityManagerDecorator
|
||||
}
|
||||
);
|
||||
|
||||
$baseDir = Path::canonicalize(__DIR__ . '/../');
|
||||
$dsn = str_replace('%BASEDIR%', $baseDir, Configuration::getInstance()->database);
|
||||
$dsn = str_replace(
|
||||
'%BASEDIR%',
|
||||
Path::canonicalize(__DIR__ . '/../'),
|
||||
Configuration::getInstance()->database
|
||||
);
|
||||
$parser = new DsnParser([
|
||||
'mariadb' => 'pdo_mysql',
|
||||
'mssql' => 'pdo_sqlsrv',
|
||||
@ -429,7 +432,7 @@ final class EntityManager extends EntityManagerDecorator
|
||||
$conn = DriverManager::getConnection(
|
||||
// Generic return type of DsnParser::parse() is not correctly recognized.
|
||||
// phpcs:ignore
|
||||
$parser->parse(dsn: $dsn),
|
||||
$parser->parse($dsn),
|
||||
$config
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user