@@ -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') { |
@@ -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 | |
@@ -82,14 +82,14 @@ |
||
| 82 | 82 | */ |
| 83 | 83 | public function output(string $message, bool $advance = false): void { |
| 84 | 84 | if (!is_null($this->occOutput)) { |
| 85 | - $this->occOutput->writeln((($advance) ? '+' : '-') . ' ' . $message); |
|
| 85 | + $this->occOutput->writeln((($advance) ? '+' : '-').' '.$message); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | if (!is_null($this->migrationOutput)) { |
| 89 | 89 | if ($advance) { |
| 90 | - $this->migrationOutput->advance(1, '(Circles) ' . $message); |
|
| 90 | + $this->migrationOutput->advance(1, '(Circles) '.$message); |
|
| 91 | 91 | } else { |
| 92 | - $this->migrationOutput->info('(Circles) ' . $message); |
|
| 92 | + $this->migrationOutput->info('(Circles) '.$message); |
|
| 93 | 93 | } |
| 94 | 94 | } |
| 95 | 95 | } |
@@ -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); |
@@ -577,24 +577,24 @@ |
||
| 577 | 577 | switch ($type) { |
| 578 | 578 | case DeprecatedCircle::CIRCLES_PERSONAL: |
| 579 | 579 | return $urlGen->getAbsoluteURL( |
| 580 | - $urlGen->imagePath(Application::APP_ID, 'personal' . $ext) |
|
| 580 | + $urlGen->imagePath(Application::APP_ID, 'personal'.$ext) |
|
| 581 | 581 | ); |
| 582 | 582 | case DeprecatedCircle::CIRCLES_CLOSED: |
| 583 | 583 | return $urlGen->getAbsoluteURL( |
| 584 | - $urlGen->imagePath(Application::APP_ID, 'closed' . $ext) |
|
| 584 | + $urlGen->imagePath(Application::APP_ID, 'closed'.$ext) |
|
| 585 | 585 | ); |
| 586 | 586 | case DeprecatedCircle::CIRCLES_SECRET: |
| 587 | 587 | return $urlGen->getAbsoluteURL( |
| 588 | - $urlGen->imagePath(Application::APP_ID, 'secret' . $ext) |
|
| 588 | + $urlGen->imagePath(Application::APP_ID, 'secret'.$ext) |
|
| 589 | 589 | ); |
| 590 | 590 | case DeprecatedCircle::CIRCLES_PUBLIC: |
| 591 | 591 | return $urlGen->getAbsoluteURL( |
| 592 | - $urlGen->imagePath(Application::APP_ID, 'circles' . $ext) |
|
| 592 | + $urlGen->imagePath(Application::APP_ID, 'circles'.$ext) |
|
| 593 | 593 | ); |
| 594 | 594 | } |
| 595 | 595 | |
| 596 | 596 | return $urlGen->getAbsoluteURL( |
| 597 | - $urlGen->imagePath(Application::APP_ID, 'circles' . $ext) |
|
| 597 | + $urlGen->imagePath(Application::APP_ID, 'circles'.$ext) |
|
| 598 | 598 | ); |
| 599 | 599 | } |
| 600 | 600 | |