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/worker.php | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'tools/worker.php')
| -rwxr-xr-x | tools/worker.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/worker.php b/tools/worker.php index e19fe1c6..d0623eb4 100755 --- a/tools/worker.php +++ b/tools/worker.php @@ -2,15 +2,15 @@ <?php /* worker.php - part of advanced build vichan feature */ -require dirname(__FILE__) . '/inc/cli.php'; +require __DIR__ . '/inc/cli.php'; require_once 'inc/controller.php'; $config['smart_build'] = false; // Let's disable it, so we can build the page for real -$config['generation_strategies'] = array('strategy_immediate'); +$config['generation_strategies'] = ['strategy_immediate']; function after_open_board() { global $config; $config['smart_build'] = false; - $config['generation_strategies'] = array('strategy_immediate'); + $config['generation_strategies'] = ['strategy_immediate']; }; echo "Hello world!\n"; @@ -20,7 +20,7 @@ $queue = get_queue('generate'); while (true) { $q = $queue->pop(2); foreach ($q as $v) { - list($__, $func, $ary, $action) = unserialize($v); + [$__, $func, $ary, $action] = unserialize($v); echo "Starting to generate $func ".implode(" ", $ary)."... "; call_user_func_array($func, $ary); |
