refactor getopt() call

pull/14626/head
Art4 2024-12-26 09:24:12 +00:00
rodzic 0cd2b8e2c0
commit 341f5b46f6
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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__));