@@ -185,8 +185,8 @@ discard block |
||
185 | 185 | $groupsInfo->setSorting($sortGroupsBy); |
186 | 186 | list($adminGroup, $groups) = $groupsInfo->get(); |
187 | 187 | |
188 | - if(!$isLDAPUsed && $this->appManager->isEnabledForUser('user_ldap')) { |
|
189 | - $isLDAPUsed = (bool)array_reduce($this->userManager->getBackends(), function ($ldapFound, $backend) { |
|
188 | + if (!$isLDAPUsed && $this->appManager->isEnabledForUser('user_ldap')) { |
|
189 | + $isLDAPUsed = (bool) array_reduce($this->userManager->getBackends(), function($ldapFound, $backend) { |
|
190 | 190 | return $ldapFound || $backend instanceof User_Proxy; |
191 | 191 | }); |
192 | 192 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if ($this->isAdmin) { |
195 | 195 | $disabledUsers = $isLDAPUsed ? -1 : $this->userManager->countDisabledUsers(); |
196 | 196 | $userCount = $isLDAPUsed ? 0 : array_reduce($this->userManager->countUsers(), function($v, $w) { |
197 | - return $v + (int)$w; |
|
197 | + return $v + (int) $w; |
|
198 | 198 | }, 0); |
199 | 199 | } else { |
200 | 200 | // User is subadmin ! |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | $groupsNames = []; |
204 | 204 | $userCount = 0; |
205 | 205 | |
206 | - foreach($groups as $key => $group) { |
|
206 | + foreach ($groups as $key => $group) { |
|
207 | 207 | // $userCount += (int)$group['usercount']; |
208 | 208 | array_push($groupsNames, $group['name']); |
209 | 209 | // we prevent subadmins from looking up themselves |
@@ -402,11 +402,11 @@ discard block |
||
402 | 402 | |
403 | 403 | $accountData = $this->accountManager->getUser($user); |
404 | 404 | $cloudId = $user->getCloudId(); |
405 | - $message = 'Use my Federated Cloud ID to share with me: ' . $cloudId; |
|
405 | + $message = 'Use my Federated Cloud ID to share with me: '.$cloudId; |
|
406 | 406 | $signature = $this->signMessage($user, $message); |
407 | 407 | |
408 | - $code = $message . ' ' . $signature; |
|
409 | - $codeMd5 = $message . ' ' . md5($signature); |
|
408 | + $code = $message.' '.$signature; |
|
409 | + $codeMd5 = $message.' '.md5($signature); |
|
410 | 410 | |
411 | 411 | switch ($account) { |
412 | 412 | case 'verify-twitter': |