aboutsummaryrefslogtreecommitdiffstats
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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Group/MetaData.php b/lib/private/Group/MetaData.php
index 335bf43c16b..880dbf6437c 100644
--- a/lib/private/Group/MetaData.php
+++ b/lib/private/Group/MetaData.php
@@ -83,7 +83,7 @@ class MetaData {
*/
public function get($groupSearch = '', $userSearch = '') {
$key = $groupSearch . '::' . $userSearch;
- if(isset($this->metaData[$key])) {
+ if (isset($this->metaData[$key])) {
return $this->metaData[$key];
}
@@ -94,7 +94,7 @@ class MetaData {
$sortAdminGroupsIndex = 0;
$sortAdminGroupsKeys = [];
- foreach($this->getGroups($groupSearch) as $group) {
+ foreach ($this->getGroups($groupSearch) as $group) {
$groupMetaData = $this->generateGroupMetaData($group, $userSearch);
if (strtolower($group->getGID()) !== 'admin') {
$this->addEntry(
@@ -194,11 +194,11 @@ class MetaData {
* @return \OCP\IGroup[]
*/
public function getGroups($search = '') {
- if($this->isAdmin) {
+ if ($this->isAdmin) {
return $this->groupManager->search($search);
} else {
$userObject = $this->userSession->getUser();
- if($userObject !== null) {
+ if ($userObject !== null) {
$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($userObject);
} else {
$groups = [];