]> git.mxchange.org Git - friendica.git/commitdiff
refactor getopt() call
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 13:57:46 +0000 (13:57 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 13:57:46 +0000 (13:57 +0000)
bin/worker.php

index 668e99f904d03f46a1fd11bff6abad1c06f1e030..c0b990fd230d4543552d62940c6c896eec620e0d 100755 (executable)
@@ -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__));