summaryrefslogtreecommitdiffstats
path: root/lib/private/Group/MetaData.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Group/MetaData.php')
-rw-r--r--lib/private/Group/MetaData.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/Group/MetaData.php b/lib/private/Group/MetaData.php
index 2a0198bc451..a48baa15cfe 100644
--- a/lib/private/Group/MetaData.php
+++ b/lib/private/Group/MetaData.php
@@ -43,7 +43,7 @@ class MetaData {
/** @var bool */
protected $isAdmin;
/** @var array */
- protected $metaData = array();
+ protected $metaData = [];
/** @var IGroupManager */
protected $groupManager;
/** @var bool */
@@ -86,12 +86,12 @@ class MetaData {
return $this->metaData[$key];
}
- $adminGroups = array();
- $groups = array();
+ $adminGroups = [];
+ $groups = [];
$sortGroupsIndex = 0;
- $sortGroupsKeys = array();
+ $sortGroupsKeys = [];
$sortAdminGroupsIndex = 0;
- $sortAdminGroupsKeys = array();
+ $sortAdminGroupsKeys = [];
foreach($this->getGroups($groupSearch) as $group) {
$groupMetaData = $this->generateGroupMetaData($group, $userSearch);
@@ -117,7 +117,7 @@ class MetaData {
$this->sort($groups, $sortGroupsKeys);
$this->sort($adminGroups, $sortAdminGroupsKeys);
- $this->metaData[$key] = array($adminGroups, $groups);
+ $this->metaData[$key] = [$adminGroups, $groups];
return $this->metaData[$key];
}
@@ -163,14 +163,14 @@ class MetaData {
* @return array with the keys 'id', 'name', 'usercount' and 'disabled'
*/
private function generateGroupMetaData(\OCP\IGroup $group, $userSearch) {
- return array(
+ return [
'id' => $group->getGID(),
'name' => $group->getDisplayName(),
'usercount' => $this->sorting === self::SORT_USERCOUNT ? $group->count($userSearch) : 0,
'disabled' => $group->countDisabled(),
'canAdd' => $group->canAddUser(),
'canRemove' => $group->canRemoveUser(),
- );
+ ];
}
/**