Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich authored Oct 8, 2024
1 parent 46a7b77 commit d9a2fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/EventStore/Storage/Doctrine/DoctrineEventStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ public function getStatus(): Result
return $result;
}
$result->addNotice(new Notice((string)$this->connection->getParams()['host'], null, [], 'Host'));
$result->addNotice(new Notice((string)$this->connection->getParams()['port'], null, [], 'Port'));
$result->addNotice(new Notice((string)($this->connection->getParams()['port'] ?? 'default'), null, [], 'Port'));
$result->addNotice(new Notice((string)$this->connection->getDatabase(), null, [], 'Database'));
$result->addNotice(new Notice((string)$this->connection->getDatabasePlatform()?->getName(), null, [], 'Platform'));
$result->addNotice(new Notice((string)($this->connection->getParams()['driver'] ?? '?'), null, [], 'Driver'));
$result->addNotice(new Notice((string)$this->connection->getParams()['user'], null, [], 'Username'));
if ($tableExists) {
$result->addNotice(new Notice('%s (exists)', null, [$this->eventTableName], 'Table'));
Expand Down

0 comments on commit d9a2fca

Please sign in to comment.