]> git.mxchange.org Git - friendica.git/commitdiff
Make PHP-CS happy
authorPhilipp <admin@philipp.info>
Mon, 30 Dec 2024 11:46:24 +0000 (12:46 +0100)
committerPhilipp <admin@philipp.info>
Mon, 30 Dec 2024 11:46:24 +0000 (12:46 +0100)
src/Console/Daemon.php

index 5e728087a8547db52a4bd94098b83ab24aeb1909..8015d2e448e7966eb26fbe774f75eae0e5e77e64 100644 (file)
@@ -55,7 +55,7 @@ final class Daemon extends Console
                $this->basePath = $basePath;
                $this->system   = $system;
                $this->logger   = $logger;
-               $this->dba       = $dba;
+               $this->dba      = $dba;
        }
 
        protected function getHelp(): string
@@ -193,7 +193,7 @@ HELP;
 
                $wait_interval = intval($this->config->get('system', 'cron_interval', 5)) * 60;
 
-               $do_cron = true;
+               $do_cron   = true;
                $last_cron = 0;
 
                $path = $this->basePath->getPath();
@@ -232,7 +232,7 @@ HELP;
                                // logarithmic wait time calculation.
                                // Background: After jobs had been started, they often fork many workers.
                                // To not waste too much time, the sleep period increases.
-                               $arg = (($seconds + 1) / ($wait_interval / 9)) + 1;
+                               $arg   = (($seconds + 1) / ($wait_interval / 9)) + 1;
                                $sleep = min(1000000, round(log10($arg) * 1000000, 0));
                                usleep((int)$sleep);