diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
| commit | 2c69095a1edf7474073451285238659d0f62ce3f (patch) | |
| tree | 5dee476605402c66dc2853d0836b29f6aedae62b /tools/rebuild.php | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'tools/rebuild.php')
| -rwxr-xr-x | tools/rebuild.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/rebuild.php b/tools/rebuild.php index 289523a1..9adb183b 100755 --- a/tools/rebuild.php +++ b/tools/rebuild.php @@ -19,18 +19,18 @@ * */ -require dirname(__FILE__) . '/inc/cli.php'; +require __DIR__ . '/inc/cli.php'; require_once("inc/bans.php"); $start = microtime(true); // parse command line -$opts = getopt('qfb:', Array('board:', 'quick', 'full', 'quiet')); -$options = Array(); +$opts = getopt('qfb:', ['board:', 'quick', 'full', 'quiet']); +$options = []; $global_locale = $config['locale']; -$options['board'] = isset($opts['board']) ? $opts['board'] : (isset($opts['b']) ? $opts['b'] : false); +$options['board'] = $opts['board'] ?? $opts['b'] ?? false; $options['quiet'] = isset($opts['q']) || isset($opts['quiet']); $options['quick'] = isset($opts['quick']); $options['full'] = isset($opts['full']) || isset($opts['f']); |
