summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2021-07-19 15:20:22 -0400
committerBrian Evans <grknight@gentoo.org>2021-07-19 15:20:22 -0400
commit9f092345e6bbecfde8c19e6d1490a6031a35f61f (patch)
tree2abb2398cd0df686e8608e15097ddc58b8995615 /MLEB/Translate/messagegroups/AggregateMessageGroup.php
parentOAuth: Update for fixes and security (diff)
downloadextensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.tar.gz
extensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.tar.bz2
extensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.zip
Update to MLEB 2021.06
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/messagegroups/AggregateMessageGroup.php')
-rw-r--r--MLEB/Translate/messagegroups/AggregateMessageGroup.php36
1 files changed, 9 insertions, 27 deletions
diff --git a/MLEB/Translate/messagegroups/AggregateMessageGroup.php b/MLEB/Translate/messagegroups/AggregateMessageGroup.php
index 52666b89..17d83a33 100644
--- a/MLEB/Translate/messagegroups/AggregateMessageGroup.php
+++ b/MLEB/Translate/messagegroups/AggregateMessageGroup.php
@@ -14,14 +14,10 @@
* @ingroup MessageGroup
*/
class AggregateMessageGroup extends MessageGroupBase {
- /**
- * @var MessageGroup[]
- */
+ /** @var MessageGroup[] */
private $groups;
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function exists() {
// Group exists if there are any subgroups.
$exists = (bool)$this->conf['GROUPS'];
@@ -29,15 +25,11 @@ class AggregateMessageGroup extends MessageGroupBase {
return $exists;
}
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function load( $code ) {
$messages = [];
- /**
- * @var $group MessageGroup
- */
+ /** @var $group MessageGroup */
foreach ( $this->getGroups() as $group ) {
$messages += $group->load( $code );
}
@@ -45,9 +37,7 @@ class AggregateMessageGroup extends MessageGroupBase {
return $messages;
}
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function getMangler() {
if ( $this->mangler === null ) {
$this->mangler = new StringMatcher();
@@ -116,9 +106,7 @@ class AggregateMessageGroup extends MessageGroupBase {
return $messages;
}
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function initCollection( $code ) {
$messages = $this->loadMessagesFromCache( $this->getGroups() );
$namespace = $this->getNamespace();
@@ -130,9 +118,7 @@ class AggregateMessageGroup extends MessageGroupBase {
return $collection;
}
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function getMessage( $key, $code ) {
/* Just hand over the message content retrieval to the primary message
* group directly. This used to iterate over the subgroups looking for
@@ -160,9 +146,7 @@ class AggregateMessageGroup extends MessageGroupBase {
}
}
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function getTags( $type = null ) {
$tags = [];
@@ -173,9 +157,7 @@ class AggregateMessageGroup extends MessageGroupBase {
return $tags;
}
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function getKeys() {
$keys = [];
foreach ( $this->getGroups() as $group ) {