Skip to content

Commit 7374ad5

Browse files
committed
Coding standard adjustments
1 parent fdc45bc commit 7374ad5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

phpcs.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
<file>.</file>
99
<exclude-pattern>*/vendor/*</exclude-pattern>
1010
<exclude-pattern>*/build/*</exclude-pattern>
11-
<rule ref="Wdes"></rule>
11+
<rule ref="Wdes">
12+
<exclude name="PSR12.Classes.OpeningBraceSpace.Found"/>
13+
</rule>
1214
</ruleset>

src/Database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*/
2626
class Database
2727
{
28-
2928
/**
3029
* @var array<string,string|int>
3130
*
@@ -111,7 +110,9 @@ public function __destruct()
111110
public function connect(): void
112111
{
113112
if ($this->dbConfig === null) {
114-
throw new LogicException('You need to pass the config when creating the Database instance to use the connect method.');
113+
throw new LogicException(
114+
'You need to pass the config when creating the Database instance to use the connect method.'
115+
);
115116
}
116117

117118
$dsn = sprintf(

0 commit comments

Comments
 (0)