Make PHP-CS even more happy :)

This commit is contained in:
Philipp 2025-01-02 00:19:08 +01:00
parent f2ce5647f2
commit 2b5882855b
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 34 additions and 33 deletions

View file

@ -96,7 +96,7 @@ final class Daemon
if ($this->pid < 0) {
$this->logger->warning('Could not fork daemon');
return false;
} else if ($this->pid) {
} elseif ($this->pid) {
// The parent process continues here
if (!file_put_contents($this->pidfile, $this->pid)) {
$this->logger->warning('Could not store pid file', ['pid' => $this->pid, 'pidfile' => $this->pidfile]);