summaryrefslogtreecommitdiffstats
path: root/lib/private/Group
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:53:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:54:22 +0200
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /lib/private/Group
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
downloadnextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.tar.gz
nextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.zip
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Group')
-rw-r--r--lib/private/Group/Database.php4
-rw-r--r--lib/private/Group/Group.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index 48b01461531..ba023d64acb 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -165,7 +165,7 @@ class Database extends ABackend
*
* Checks whether the user is member of a group or not.
*/
- public function inGroup( $uid, $gid ) {
+ public function inGroup($uid, $gid) {
$this->fixDI();
// check
@@ -234,7 +234,7 @@ class Database extends ABackend
* This function fetches all groups a user belongs to. It does not check
* if the user exists at all.
*/
- public function getUserGroups( $uid ) {
+ public function getUserGroups($uid) {
//guests has empty or null $uid
if ($uid === null || $uid === '') {
return [];
diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php
index 90b4221b414..38f360b6ce5 100644
--- a/lib/private/Group/Group.php
+++ b/lib/private/Group/Group.php
@@ -398,7 +398,7 @@ class Group implements IGroup {
* @since 16.0.0
*/
public function hideFromCollaboration(): bool {
- return array_reduce($this->backends, function(bool $hide, GroupInterface $backend) {
+ return array_reduce($this->backends, function (bool $hide, GroupInterface $backend) {
return $hide | ($backend instanceof IHideFromCollaborationBackend && $backend->hideGroup($this->gid));
}, false);
}