@@ -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 | |
@@ -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; |
@@ -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); |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | * @return string |
| 110 | 110 | */ |
| 111 | 111 | protected function stripPath($path) { |
| 112 | - $prefix = '/' . $this->userId . '/files'; |
|
| 112 | + $prefix = '/'.$this->userId.'/files'; |
|
| 113 | 113 | |
| 114 | 114 | return rtrim(substr($path, strlen($prefix)), '/'); |
| 115 | 115 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | try { |
| 105 | 105 | $level = Member::parseLevelString($levelString); |
| 106 | 106 | } catch (ParseMemberLevelException $e) { |
| 107 | - throw new MemberHelperException('method ' . $levelString . ' not found'); |
|
| 107 | + throw new MemberHelperException('method '.$levelString.' not found'); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | $this->mustHaveLevelEqualOrAbove($level); |
@@ -122,11 +122,11 @@ discard block |
||
| 122 | 122 | try { |
| 123 | 123 | $level = Member::parseLevelString($levelString); |
| 124 | 124 | } catch (ParseMemberLevelException $e) { |
| 125 | - throw new MemberHelperException('method ' . $levelString . ' not found'); |
|
| 125 | + throw new MemberHelperException('method '.$levelString.' not found'); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | if ($this->member->getLevel() >= $level) { |
| 129 | - throw new MemberLevelException('Member cannot be ' . $levelString); |
|
| 129 | + throw new MemberLevelException('Member cannot be '.$levelString); |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * @return string[] |
| 219 | 219 | */ |
| 220 | 220 | public function fillCommandList(string $source, string $field): array { |
| 221 | - echo $source . ' ' . $field . "\n"; |
|
| 221 | + echo $source.' '.$field."\n"; |
|
| 222 | 222 | |
| 223 | 223 | return ['abcd', 'abdde', 'erfg']; |
| 224 | 224 | } |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | * @return string |
| 395 | 395 | */ |
| 396 | 396 | private function obfuscateId(string $id): string { |
| 397 | - return substr($id, 0, 5) . '.' . md5(substr($id, 5)); |
|
| 397 | + return substr($id, 0, 5).'.'.md5(substr($id, 5)); |
|
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | */ |
| 404 | 404 | public function onNewPrompt(NC22InteractiveShellSession $session): void { |
| 405 | 405 | $prompt = |
| 406 | - 'Circles Report [<info>' . $this->report->getSource() . '</info>]:<comment>%PATH%</comment>'; |
|
| 406 | + 'Circles Report [<info>'.$this->report->getSource().'</info>]:<comment>%PATH%</comment>'; |
|
| 407 | 407 | |
| 408 | 408 | $commands = []; |
| 409 | 409 | if ($session->getData()->g('currentStatus') === 'write') { |