Skip to content

Commit

Permalink
Coding standard adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Feb 17, 2022
1 parent fdc45bc commit 7374ad5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<rule ref="Wdes"></rule>
<rule ref="Wdes">
<exclude name="PSR12.Classes.OpeningBraceSpace.Found"/>
</rule>
</ruleset>
5 changes: 3 additions & 2 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class Database
{

/**
* @var array<string,string|int>
*
Expand Down Expand Up @@ -111,7 +110,9 @@ public function __destruct()
public function connect(): void
{
if ($this->dbConfig === null) {
throw new LogicException('You need to pass the config when creating the Database instance to use the connect method.');
throw new LogicException(
'You need to pass the config when creating the Database instance to use the connect method.'
);
}

$dsn = sprintf(
Expand Down

0 comments on commit 7374ad5

Please sign in to comment.