@@ -81,7 +81,7 @@ |
||
| 81 | 81 | ->generateGroupBy(self::$tables[self::TABLE_CIRCLE], $alias); |
| 82 | 82 | |
| 83 | 83 | if (!$single) { |
| 84 | - $qb->orderBy($alias . '.creation', 'asc'); |
|
| 84 | + $qb->orderBy($alias.'.creation', 'asc'); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | return $qb; |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | if ($check) { |
| 479 | 479 | $user = $this->userManager->get($userId); |
| 480 | 480 | if ($user === null) { |
| 481 | - throw new FederatedUserNotFoundException('user ' . $userId . ' not found'); |
|
| 481 | + throw new FederatedUserNotFoundException('user '.$userId.' not found'); |
|
| 482 | 482 | } |
| 483 | 483 | $userId = $user->getUID(); |
| 484 | 484 | $displayName = $user->getDisplayName(); |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | $prefix = ($federatedUser->getUserType() === Member::TYPE_APP) ? 'app' |
| 954 | 954 | : Member::$TYPE[$federatedUser->getUserType()]; |
| 955 | 955 | |
| 956 | - $circle->setName($prefix . ':' . $federatedUser->getUserId() . ':' . $id) |
|
| 956 | + $circle->setName($prefix.':'.$federatedUser->getUserId().':'.$id) |
|
| 957 | 957 | ->setDisplayName($federatedUser->getDisplayName()) |
| 958 | 958 | ->setSingleId($id) |
| 959 | 959 | ->setSource($source); |
@@ -1157,7 +1157,7 @@ discard block |
||
| 1157 | 1157 | $owner = $this->getCurrentApp(); |
| 1158 | 1158 | |
| 1159 | 1159 | $circle = new Circle(); |
| 1160 | - $circle->setName('group:' . $groupId) |
|
| 1160 | + $circle->setName('group:'.$groupId) |
|
| 1161 | 1161 | ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN) |
| 1162 | 1162 | ->setSingleId($this->token(ManagedModel::ID_LENGTH)) |
| 1163 | 1163 | ->setSource(Member::TYPE_GROUP); |
@@ -1223,8 +1223,8 @@ discard block |
||
| 1223 | 1223 | * @return string |
| 1224 | 1224 | */ |
| 1225 | 1225 | private function generateCacheKey(FederatedUser $federatedUser): string { |
| 1226 | - return $federatedUser->getInstance() . '#' |
|
| 1227 | - . $federatedUser->getUserType() . '#' |
|
| 1226 | + return $federatedUser->getInstance().'#' |
|
| 1227 | + . $federatedUser->getUserType().'#' |
|
| 1228 | 1228 | . $federatedUser->getUserId(); |
| 1229 | 1229 | } |
| 1230 | 1230 | } |