X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobRunner.php;h=a85613af4835b0e9cfdf6baef9c7149caf3397a1;hb=138298b397b308ad6e4bfc7088884d90e8ac1e37;hp=977fbdaaa5c2701ed2233b2f257eb3d5841d1a00;hpb=733993fa54ecd9d55e52c88ed44be343b9a8abed;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index 977fbdaaa5..a85613af48 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -109,9 +109,9 @@ class JobRunner implements LoggerAwareInterface { $response = [ 'jobs' => [], 'reached' => 'none-ready' ]; - $type = isset( $options['type'] ) ? $options['type'] : false; - $maxJobs = isset( $options['maxJobs'] ) ? $options['maxJobs'] : false; - $maxTime = isset( $options['maxTime'] ) ? $options['maxTime'] : false; + $type = $options['type'] ?? false; + $maxJobs = $options['maxJobs'] ?? false; + $maxTime = $options['maxTime'] ?? false; $noThrottle = isset( $options['throttle'] ) && !$options['throttle']; // Bail if job type is invalid