Skip to content

Commit 5e36050

Browse files
committed
styling fixes
1 parent 1952923 commit 5e36050

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/Configuration/Connections/MysqlConnection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace LaravelDoctrine\ORM\Configuration\Connections;
66

7+
use function array_merge;
8+
79
class MysqlConnection extends Connection
810
{
911
/**
@@ -13,9 +15,7 @@ class MysqlConnection extends Connection
1315
*/
1416
public function resolve(array $settings = []): array
1517
{
16-
$overrides = [
17-
'driver' => 'pdo_mysql',
18-
];
18+
$overrides = ['driver' => 'pdo_mysql'];
1919

2020
// Map Laravel keys to Doctrine DBAL keys
2121
if (isset($settings['database'])) {
@@ -34,7 +34,7 @@ public function resolve(array $settings = []): array
3434
}
3535

3636
// Set default for defaultTableOptions if not present
37-
if (!isset($settings['defaultTableOptions'])) {
37+
if (! isset($settings['defaultTableOptions'])) {
3838
$overrides['defaultTableOptions'] = [];
3939
}
4040

src/Configuration/Connections/SqlsrvConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function resolve(array $settings = []): array
4343
}
4444

4545
// Set default for defaultTableOptions if not present
46-
if (!isset($settings['defaultTableOptions'])) {
46+
if (! isset($settings['defaultTableOptions'])) {
4747
$overrides['defaultTableOptions'] = [];
4848
}
4949

tests/Feature/Configuration/Connections/OracleConnectionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public function testCanResolve(): void
4040
'persistent' => 'persistent',
4141
]);
4242

43-
44-
4543
$this->assertEquals('oci8', $resolved['driver']);
4644
$this->assertEquals('host', $resolved['host']);
4745
$this->assertEquals('service_name', $resolved['servicename']);

0 commit comments

Comments
 (0)