summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2020-10-02 15:24:06 -0400
committerBrian Evans <grknight@gentoo.org>2020-10-02 15:24:06 -0400
commit60dd5fd95847643eab04ce173f0774c9c584e795 (patch)
tree52299ac4e3c5c69df75997bfd7d62b71ef9e0089 /MLEB/Translate/utils/MessageGroupStates.php
parentUpdate Widgets to 1.35 (diff)
downloadextensions-60dd5fd95847643eab04ce173f0774c9c584e795.tar.gz
extensions-60dd5fd95847643eab04ce173f0774c9c584e795.tar.bz2
extensions-60dd5fd95847643eab04ce173f0774c9c584e795.zip
Update MLEB to 2020.07
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/utils/MessageGroupStates.php')
-rw-r--r--MLEB/Translate/utils/MessageGroupStates.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/MLEB/Translate/utils/MessageGroupStates.php b/MLEB/Translate/utils/MessageGroupStates.php
index de20f6c8..11161356 100644
--- a/MLEB/Translate/utils/MessageGroupStates.php
+++ b/MLEB/Translate/utils/MessageGroupStates.php
@@ -14,7 +14,7 @@
* @since 2012-10-05
*/
class MessageGroupStates {
- const CONDKEY = 'state conditions';
+ private const CONDKEY = 'state conditions';
protected $config;
@@ -31,10 +31,6 @@ class MessageGroupStates {
public function getConditions() {
$conf = $this->config;
- if ( isset( $conf[self::CONDKEY] ) ) {
- return $conf[self::CONDKEY];
- } else {
- return [];
- }
+ return $conf[self::CONDKEY] ?? [];
}
}