@@ -284,7 +284,7 @@ |
||
284 | 284 | ob_start(); |
285 | 285 | echo(json_encode($result)); |
286 | 286 | $size = ob_get_length(); |
287 | - header('Content-Length: ' . $size); |
|
287 | + header('Content-Length: '.$size); |
|
288 | 288 | ob_end_flush(); |
289 | 289 | flush(); |
290 | 290 | } |
@@ -146,7 +146,7 @@ |
||
146 | 146 | * @return string |
147 | 147 | */ |
148 | 148 | public function getUniqueId(): string { |
149 | - return $this->getAddressBookId() . '/' . $this->getCardUri(); |
|
149 | + return $this->getAddressBookId().'/'.$this->getCardUri(); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 |
@@ -121,11 +121,11 @@ |
||
121 | 121 | |
122 | 122 | private function leftJoinMountPoint(IQueryBuilder $qb, string $userId) { |
123 | 123 | $expr = $qb->expr(); |
124 | - $pf = '' . $this->default_select_alias . '.'; |
|
124 | + $pf = ''.$this->default_select_alias.'.'; |
|
125 | 125 | |
126 | 126 | $on = $expr->andX(); |
127 | 127 | $on->add($expr->eq('mp.user_id', $qb->createNamedParameter($userId))); |
128 | - $on->add($expr->eq('mp.share_id', $pf . 'id')); |
|
128 | + $on->add($expr->eq('mp.share_id', $pf.'id')); |
|
129 | 129 | |
130 | 130 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
131 | 131 | $qb->selectAlias('mp.mountPoint', 'gsshares_mountpoint') |
@@ -148,7 +148,7 @@ |
||
148 | 148 | continue; |
149 | 149 | } |
150 | 150 | |
151 | - $level = (int) $row['role'] === 1 ? DeprecatedMember::LEVEL_OWNER : DeprecatedMember::LEVEL_MEMBER; |
|
151 | + $level = (int)$row['role'] === 1 ? DeprecatedMember::LEVEL_OWNER : DeprecatedMember::LEVEL_MEMBER; |
|
152 | 152 | |
153 | 153 | if ($level === DeprecatedMember::LEVEL_OWNER) { |
154 | 154 | if (isset($this->circleHasAdmin[$this->circlesById[$row['group_id']]])) { |
@@ -189,7 +189,7 @@ |
||
189 | 189 | $loop++; |
190 | 190 | if ($loop > 10 || in_array($instance, $knownInstance)) { |
191 | 191 | throw new CircleNotFoundException( |
192 | - 'circle not found after browsing ' . implode(', ', $knownInstance) |
|
192 | + 'circle not found after browsing '.implode(', ', $knownInstance) |
|
193 | 193 | ); |
194 | 194 | } |
195 | 195 | $knownInstance[] = $instance; |
@@ -105,7 +105,7 @@ |
||
105 | 105 | $expr = $qb->expr(); |
106 | 106 | |
107 | 107 | $this->limitToShareType($qb, self::SHARE_TYPE); |
108 | - $qb->andWhere($expr->isNull($this->default_select_alias . '.parent')); |
|
108 | + $qb->andWhere($expr->isNull($this->default_select_alias.'.parent')); |
|
109 | 109 | |
110 | 110 | $shares = []; |
111 | 111 | $cursor = $qb->execute(); |
@@ -110,7 +110,7 @@ |
||
110 | 110 | /** @var FederatedShare $share */ |
111 | 111 | $share = $data->gObj('federatedShare', FederatedShare::class); |
112 | 112 | if ($share->getLockStatus() === ItemLock::STATUS_INSTANCE_LOCKED) { |
113 | - throw new FederatedShareAlreadyLockedException('item already locked by ' . $share->getInstance()); |
|
113 | + throw new FederatedShareAlreadyLockedException('item already locked by '.$share->getInstance()); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | return $share; |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -194,7 +194,7 @@ |
||
194 | 194 | throw new OCSException('works only from local instance', 404); |
195 | 195 | } |
196 | 196 | |
197 | - $userId = $currentUser->getUserId() . '/' . $userId; |
|
197 | + $userId = $currentUser->getUserId().'/'.$userId; |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | $federatedUser = $this->federatedUserService->generateFederatedUser($userId, $type); |