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

index dcb668acd6464fad99fb2ac4bc4f741a216e6866..ef9e452647d20d3c4cf609d225b08e2beb07417c 100755 (executable)
@@ -28,9 +28,7 @@ use Friendica\Util\DateTimeFormat;
 use Psr\Log\LoggerInterface;
 
 // Get options
-$shortopts = 'f';
-$longopts = ['foreground'];
-$options = getopt($shortopts, $longopts);
+$options = getopt('f', ['foreground']);
 
 // Ensure that daemon.php is executed from the base path of the installation
 chdir(dirname(__DIR__));