Merge "Revert "Deprecating: Consolidating `progressive` & `constructive` buttons""
[lhc/web/wiklou.git] / includes / poolcounter / PoolCounterWork.php
index e49afed..e61b65a 100644 (file)
@@ -65,7 +65,7 @@ abstract class PoolCounterWork {
        /**
         * Do something with the error, like showing it to the user.
         *
-        * @param $status
+        * @param Status $status
         *
         * @return bool
         */
@@ -146,9 +146,9 @@ abstract class PoolCounterWork {
                        /* These two cases should never be hit... */
                        case PoolCounter::ERROR:
                        default:
-                               $errors = array(
+                               $errors = [
                                        PoolCounter::QUEUE_FULL => 'pool-queuefull',
-                                       PoolCounter::TIMEOUT => 'pool-timeout' );
+                                       PoolCounter::TIMEOUT => 'pool-timeout' ];
 
                                $status = Status::newFatal( isset( $errors[$status->value] )
                                        ? $errors[$status->value]