X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJob.php;h=45ab4d342fbbaf2a1bd5ae6d44f289e45b52c7f6;hb=7b7676657dd57074254c341d21d798dcaccd84ba;hp=b16cfa3819dfdd43e8815b301626e23974d24760;hpb=e03b96c9a474831fb1b1d1fc1e6cd2de496dc251;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/Job.php b/includes/jobqueue/Job.php index b16cfa3819..45ab4d342f 100644 --- a/includes/jobqueue/Job.php +++ b/includes/jobqueue/Job.php @@ -170,9 +170,7 @@ abstract class Job implements IJobSpecification { * @since 1.27 */ public function getRequestId() { - return isset( $this->params['requestId'] ) - ? $this->params['requestId'] - : null; + return $this->params['requestId'] ?? null; } /** @@ -280,12 +278,8 @@ abstract class Job implements IJobSpecification { */ public function getRootJobParams() { return [ - 'rootJobSignature' => isset( $this->params['rootJobSignature'] ) - ? $this->params['rootJobSignature'] - : null, - 'rootJobTimestamp' => isset( $this->params['rootJobTimestamp'] ) - ? $this->params['rootJobTimestamp'] - : null + 'rootJobSignature' => $this->params['rootJobSignature'] ?? null, + 'rootJobTimestamp' => $this->params['rootJobTimestamp'] ?? null ]; }