Skip to content

Commit 6a764b0

Browse files
chore: apply yoda condition style
1 parent 669ee58 commit 6a764b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Manager/MittwaldApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private function checkDatabaseHostReachable(string $hostname, int $waitingTime,
239239
$port
240240
);
241241
$result = run("php -r " . escapeshellarg($check));
242-
if (trim($result) === '1') {
242+
if ('1' === trim($result)) {
243243
info("Database host {$hostname}:{$port} is reachable.");
244244
return true;
245245
}

0 commit comments

Comments
 (0)