Skip to content

Commit

Permalink
solve phpcs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skyminds committed Mar 17, 2024
1 parent 6a6e1b8 commit 294e0a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ public function __construct(
protected string $dbUser='root',
protected string $dbPass='',
protected ?array $dbOptions=null,
protected ?\PDO $pdo = null
protected ?\PDO $pdo=null
) {
// Connect.
try {
if($pdo !== null) {
if ($pdo !== null) {
$this->connection = $pdo;
return;
}

// Corrected to use the updated parameter names.
$this->connection = new \PDO(
"mysql:host=$dbHost;port=$dbPort",
Expand All @@ -79,6 +80,7 @@ public function __construct(

}


/**
* Create a new catalog
*
Expand Down

0 comments on commit 294e0a0

Please sign in to comment.