X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FshowJobs.php;h=0c68032ef2021fae3f43a9357e1d3f85ade13e49;hb=7b6b8e9b53c3c934b6ff9a2026683153310e2415;hp=992c238d2d69c3b8140192088fa799d6971a5ff5;hpb=fb25d9fe77207c86d3f99934c74d5a0fa96ef0a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php index 992c238d2d..0c68032ef2 100644 --- a/maintenance/showJobs.php +++ b/maintenance/showJobs.php @@ -34,12 +34,12 @@ require_once __DIR__ . '/Maintenance.php'; * @ingroup Maintenance */ class ShowJobs extends Maintenance { - protected static $stateMethods = array( + protected static $stateMethods = [ 'unclaimed' => 'getAllQueuedJobs', 'delayed' => 'getAllDelayedJobs', 'claimed' => 'getAllAcquiredJobs', 'abandoned' => 'getAllAbandonedJobs', - ); + ]; public function __construct() { parent::__construct(); @@ -59,10 +59,10 @@ class ShowJobs extends Maintenance { $group = JobQueueGroup::singleton(); $filteredTypes = $typeFilter - ? array( $typeFilter ) + ? [ $typeFilter ] : $group->getQueueTypes(); $filteredStates = $stateFilter - ? array_intersect_key( self::$stateMethods, array( $stateFilter => 1 ) ) + ? array_intersect_key( self::$stateMethods, [ $stateFilter => 1 ] ) : self::$stateMethods; if ( $this->hasOption( 'list' ) ) {