Merge pull request #122 from come-nc/patch-1

Use elseif, not else if
This commit is contained in:
Robin Appelman 2024-06-20 14:11:11 +02:00 committed by GitHub
commit 15479bda21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ class System implements ISystem {
if ($result === 0 && isset($output[0])) { if ($result === 0 && isset($output[0])) {
$this->paths[$binary] = (string)$output[0]; $this->paths[$binary] = (string)$output[0];
} else if (is_executable("/usr/bin/$binary")) { } elseif (is_executable("/usr/bin/$binary")) {
$this->paths[$binary] = "/usr/bin/$binary"; $this->paths[$binary] = "/usr/bin/$binary";
} else { } else {
$this->paths[$binary] = null; $this->paths[$binary] = null;