From 51b24cbac9c4f3b7950cd3bacf1f98caf162c5d1 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 13:57:46 +0000 Subject: [PATCH] refactor getopt() call --- bin/worker.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/worker.php b/bin/worker.php index 668e99f904..c0b990fd23 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -23,9 +23,7 @@ use Friendica\DI; use Psr\Log\LoggerInterface; // Get options -$shortopts = 'sn'; -$longopts = ['spawn', 'no_cron']; -$options = getopt($shortopts, $longopts); +$options = getopt('sn', ['spawn', 'no_cron']); // Ensure that worker.php is executed from the base path of the installation chdir(dirname(__DIR__));