@@ -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 | |
@@ -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 | |
@@ -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') { |
@@ -315,7 +315,7 @@ |
||
| 315 | 315 | public function getCachedRemoteInstance(string $instance): RemoteInstance { |
| 316 | 316 | $remoteInstance = $this->remoteRequest->getFromInstance($instance); |
| 317 | 317 | if ($remoteInstance->getType() === RemoteInstance::TYPE_UNKNOWN) { |
| 318 | - throw new UnknownRemoteException($instance . ' is set as \'unknown\' in database'); |
|
| 318 | + throw new UnknownRemoteException($instance.' is set as \'unknown\' in database'); |
|
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | return $remoteInstance; |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $tables = $schema->getTables(); |
| 79 | 79 | foreach ($tables as $table) { |
| 80 | 80 | $tableName = $table->getName(); |
| 81 | - if (substr($tableName, 0, 8 + strlen($prefix)) === $prefix . 'circles_') { |
|
| 81 | + if (substr($tableName, 0, 8 + strlen($prefix)) === $prefix.'circles_') { |
|
| 82 | 82 | $tableName = substr($tableName, strlen($prefix)); |
| 83 | 83 | $schema->dropTable($tableName); |
| 84 | 84 | } |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | $circle = new Circle(); |
| 145 | 145 | $circle->importFromDatabase( |
| 146 | 146 | $data, |
| 147 | - CoreQueryBuilder::HELPER . '_' . CoreQueryBuilder::CIRCLE . '_' |
|
| 147 | + CoreQueryBuilder::HELPER.'_'.CoreQueryBuilder::CIRCLE.'_' |
|
| 148 | 148 | ); |
| 149 | 149 | |
| 150 | 150 | return $circle; |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | |
| 497 | 497 | $i = 1; |
| 498 | 498 | while (true) { |
| 499 | - $testDisplayName = $baseDisplayName . (($i > 1) ? ' (' . $i . ')' : ''); |
|
| 499 | + $testDisplayName = $baseDisplayName.(($i > 1) ? ' ('.$i.')' : ''); |
|
| 500 | 500 | $test = new Circle(); |
| 501 | 501 | $test->setDisplayName($testDisplayName); |
| 502 | 502 | |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | |
| 530 | 530 | $i = 1; |
| 531 | 531 | while (true) { |
| 532 | - $testSanitizedName = $baseSanitizedName . (($i > 1) ? ' (' . $i . ')' : ''); |
|
| 532 | + $testSanitizedName = $baseSanitizedName.(($i > 1) ? ' ('.$i.')' : ''); |
|
| 533 | 533 | |
| 534 | 534 | $test = new Circle(); |
| 535 | 535 | $test->setSanitizedName($testSanitizedName); |
@@ -91,11 +91,11 @@ |
||
| 91 | 91 | |
| 92 | 92 | $circle = $event->getCircle(); |
| 93 | 93 | $member = $event->getMember(); |
| 94 | - $info .= 'circleId: ' . $circle->getSingleId() . '; userId: ' . $member->getUserId() . '; userType: ' |
|
| 95 | - . Member::$TYPE[$member->getUserType()] . '; singleId: ' . $member->getSingleId() |
|
| 96 | - . '; memberId: ' . $member->getId() . '; isLocal: ' . json_encode($member->isLocal()) . '; '; |
|
| 94 | + $info .= 'circleId: '.$circle->getSingleId().'; userId: '.$member->getUserId().'; userType: ' |
|
| 95 | + . Member::$TYPE[$member->getUserType()].'; singleId: '.$member->getSingleId() |
|
| 96 | + . '; memberId: '.$member->getId().'; isLocal: '.json_encode($member->isLocal()).'; '; |
|
| 97 | 97 | |
| 98 | - $this->log(3, $prefix . $info); |
|
| 98 | + $this->log(3, $prefix.$info); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | } |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * @throws SingleCircleNotFoundException |
| 251 | 251 | */ |
| 252 | 252 | public function syncNextcloudUser(string $userId): FederatedUser { |
| 253 | - $this->outputService->output('Syncing Nextcloud User \'' . $userId . '\'', true); |
|
| 253 | + $this->outputService->output('Syncing Nextcloud User \''.$userId.'\'', true); |
|
| 254 | 254 | |
| 255 | 255 | return $this->federatedUserService->getLocalFederatedUser($userId); |
| 256 | 256 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | * @throws RequestBuilderException |
| 295 | 295 | */ |
| 296 | 296 | public function syncNextcloudGroup(string $groupId): Circle { |
| 297 | - $this->outputService->output('Syncing Nextcloud Group \'' . $groupId . '\'', true); |
|
| 297 | + $this->outputService->output('Syncing Nextcloud Group \''.$groupId.'\'', true); |
|
| 298 | 298 | |
| 299 | 299 | $circle = $this->federatedUserService->getGroupCircle($groupId); |
| 300 | 300 | $group = $this->groupManager->get($groupId); |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | */ |
| 364 | 364 | public function groupDeleted(string $groupId): void { |
| 365 | 365 | $circle = new Circle(); |
| 366 | - $circle->setName('group:' . $groupId) |
|
| 366 | + $circle->setName('group:'.$groupId) |
|
| 367 | 367 | ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN) |
| 368 | 368 | ->setSource(Member::TYPE_GROUP); |
| 369 | 369 | |