Completed
Pull Request — master (#1511)
by Julius
40s
created
lib/Service/SyncService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	 * @throws SingleCircleNotFoundException
247 247
 	 */
248 248
 	public function syncNextcloudUser(string $userId): FederatedUser {
249
-		$this->outputService->output('Syncing Nextcloud Account \'' . $userId . '\'', true);
249
+		$this->outputService->output('Syncing Nextcloud Account \''.$userId.'\'', true);
250 250
 
251 251
 		return $this->federatedUserService->getLocalFederatedUser($userId, false, true);
252 252
 	}
@@ -290,10 +290,10 @@  discard block
 block discarded – undo
290 290
 	 * @throws RequestBuilderException
291 291
 	 */
292 292
 	public function syncNextcloudGroup(string $groupId): Circle {
293
-		$this->outputService->output('Syncing Nextcloud Group \'' . $groupId . '\'', true);
293
+		$this->outputService->output('Syncing Nextcloud Group \''.$groupId.'\'', true);
294 294
 
295 295
 		$circle = $this->federatedUserService->getGroupCircle($groupId);
296
-		$members = array_map(function (Member $member): string {
296
+		$members = array_map(function(Member $member): string {
297 297
 			return $member->getSingleId();
298 298
 		}, $this->memberRequest->getMembers($circle->getSingleId()));
299 299
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 	 */
372 372
 	public function groupDeleted(string $groupId): void {
373 373
 		$circle = new Circle();
374
-		$circle->setName('group:' . $groupId)
374
+		$circle->setName('group:'.$groupId)
375 375
 			   ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN)
376 376
 			   ->setSource(Member::TYPE_GROUP);
377 377
 
Please login to merge, or discard this patch.
lib/Service/FederatedUserService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
 		if ($check) {
529 529
 			$user = $this->userManager->get($userId);
530 530
 			if ($user === null) {
531
-				throw new FederatedUserNotFoundException('user ' . $userId . ' not found');
531
+				throw new FederatedUserNotFoundException('user '.$userId.' not found');
532 532
 			}
533 533
 			$displayName = $this->userManager->getDisplayName($userId);
534 534
 		} else {
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
 			$prefix = ($federatedUser->getUserType() === Member::TYPE_APP) ? 'app'
1044 1044
 				: Member::$TYPE[$federatedUser->getUserType()];
1045 1045
 
1046
-			$circle->setName($prefix . ':' . $federatedUser->getUserId() . ':' . $id)
1046
+			$circle->setName($prefix.':'.$federatedUser->getUserId().':'.$id)
1047 1047
 				   ->setDisplayName($federatedUser->getDisplayName())
1048 1048
 				   ->setSingleId($id)
1049 1049
 				   ->setSource($source);
@@ -1247,7 +1247,7 @@  discard block
 block discarded – undo
1247 1247
 		$owner = $this->getCurrentApp();
1248 1248
 
1249 1249
 		$circle = new Circle();
1250
-		$circle->setName('group:' . $groupId)
1250
+		$circle->setName('group:'.$groupId)
1251 1251
 			   ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN)
1252 1252
 			   ->setSingleId($this->token(ManagedModel::ID_LENGTH))
1253 1253
 			   ->setSource(Member::TYPE_GROUP);
@@ -1315,8 +1315,8 @@  discard block
 block discarded – undo
1315 1315
 	 * @return string
1316 1316
 	 */
1317 1317
 	private function generateCacheKey(FederatedUser $federatedUser): string {
1318
-		return $federatedUser->getInstance() . '#'
1319
-			   . $federatedUser->getUserType() . '#'
1318
+		return $federatedUser->getInstance().'#'
1319
+			   . $federatedUser->getUserType().'#'
1320 1320
 			   . $federatedUser->getUserId();
1321 1321
 	}
1322 1322
 }
Please login to merge, or discard this patch.
lib/Db/CircleRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,8 +184,8 @@
 block discarded – undo
184 184
 		$qb->filterCircles(CoreQueryBuilder::CIRCLE, $probe);
185 185
 		if (!is_null($initiator)) {
186 186
 			$qb->limitToInitiator(CoreQueryBuilder::CIRCLE, $initiator);
187
-			$qb->orderBy($qb->generateAlias(CoreQueryBuilder::CIRCLE, CoreQueryBuilder::INITIATOR) . '.level', 'desc');
188
-			$qb->addOrderBy(CoreQueryBuilder::CIRCLE . '.display_name', 'asc');
187
+			$qb->orderBy($qb->generateAlias(CoreQueryBuilder::CIRCLE, CoreQueryBuilder::INITIATOR).'.level', 'desc');
188
+			$qb->addOrderBy(CoreQueryBuilder::CIRCLE.'.display_name', 'asc');
189 189
 		}
190 190
 		if ($probe->hasFilterMember()) {
191 191
 			$qb->limitToDirectMembership(CoreQueryBuilder::CIRCLE, $probe->getFilterMember());
Please login to merge, or discard this patch.
lib/Model/Circle.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -90,27 +90,27 @@  discard block
 block discarded – undo
90 90
 	public const FLAGS_LONG = 2;
91 91
 
92 92
 	// specific value
93
-	public const CFG_CIRCLE = 0;        // only for code readability. Circle is locked by default.
94
-	public const CFG_SINGLE = 1;        // Circle with only one single member.
95
-	public const CFG_PERSONAL = 2;      // Personal circle, only the owner can see it.
93
+	public const CFG_CIRCLE = 0; // only for code readability. Circle is locked by default.
94
+	public const CFG_SINGLE = 1; // Circle with only one single member.
95
+	public const CFG_PERSONAL = 2; // Personal circle, only the owner can see it.
96 96
 
97 97
 	// bitwise
98
-	public const CFG_SYSTEM = 4;            // System Circle (not managed by the official front-end). Meaning some config are limited
99
-	public const CFG_VISIBLE = 8;           // Visible to everyone, if not visible, people have to know its name to be able to find it
100
-	public const CFG_OPEN = 16;             // Circle is open, people can join
101
-	public const CFG_INVITE = 32;           // Adding a member generate an invitation that needs to be accepted
102
-	public const CFG_REQUEST = 64;          // Request to join Circles needs to be confirmed by a moderator
103
-	public const CFG_FRIEND = 128;          // Members of the circle can invite their friends
104
-	public const CFG_PROTECTED = 256;       // Password protected to join/request
105
-	public const CFG_NO_OWNER = 512;        // no owner, only members
106
-	public const CFG_HIDDEN = 1024;         // hidden from listing, but available as a share entity
107
-	public const CFG_BACKEND = 2048;            // Fully hidden, only backend Circles
108
-	public const CFG_LOCAL = 4096;              // Local even on GlobalScale
109
-	public const CFG_ROOT = 8192;               // Circle cannot be inside another Circle
110
-	public const CFG_CIRCLE_INVITE = 16384;     // Circle must confirm when invited in another circle
111
-	public const CFG_FEDERATED = 32768;         // Federated
112
-	public const CFG_MOUNTPOINT = 65536;        // Generate a Files folder for this Circle
113
-	public const CFG_APP = 131072;          // Some features are not available to the OCS API (ie. destroying Circle)
98
+	public const CFG_SYSTEM = 4; // System Circle (not managed by the official front-end). Meaning some config are limited
99
+	public const CFG_VISIBLE = 8; // Visible to everyone, if not visible, people have to know its name to be able to find it
100
+	public const CFG_OPEN = 16; // Circle is open, people can join
101
+	public const CFG_INVITE = 32; // Adding a member generate an invitation that needs to be accepted
102
+	public const CFG_REQUEST = 64; // Request to join Circles needs to be confirmed by a moderator
103
+	public const CFG_FRIEND = 128; // Members of the circle can invite their friends
104
+	public const CFG_PROTECTED = 256; // Password protected to join/request
105
+	public const CFG_NO_OWNER = 512; // no owner, only members
106
+	public const CFG_HIDDEN = 1024; // hidden from listing, but available as a share entity
107
+	public const CFG_BACKEND = 2048; // Fully hidden, only backend Circles
108
+	public const CFG_LOCAL = 4096; // Local even on GlobalScale
109
+	public const CFG_ROOT = 8192; // Circle cannot be inside another Circle
110
+	public const CFG_CIRCLE_INVITE = 16384; // Circle must confirm when invited in another circle
111
+	public const CFG_FEDERATED = 32768; // Federated
112
+	public const CFG_MOUNTPOINT = 65536; // Generate a Files folder for this Circle
113
+	public const CFG_APP = 131072; // Some features are not available to the OCS API (ie. destroying Circle)
114 114
 	public static $DEF_CFG_MAX = 262143;
115 115
 
116 116
 
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 	 */
480 480
 	public function addInheritedMembers(array $members): self {
481 481
 		$knownIds = array_map(
482
-			function (Member $member): string {
482
+			function(Member $member): string {
483 483
 				return $member->getId();
484 484
 			}, $this->inheritedMembers
485 485
 		);
@@ -893,25 +893,25 @@  discard block
 block discarded – undo
893 893
 	 * @throws CircleNotFoundException
894 894
 	 */
895 895
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
896
-		if ($this->get($prefix . 'unique_id', $data) === '') {
896
+		if ($this->get($prefix.'unique_id', $data) === '') {
897 897
 			throw new CircleNotFoundException();
898 898
 		}
899 899
 
900
-		$this->setSingleId($this->get($prefix . 'unique_id', $data))
901
-			 ->setName($this->get($prefix . 'name', $data))
902
-			 ->setDisplayName($this->get($prefix . 'display_name', $data))
903
-			 ->setSanitizedName($this->get($prefix . 'sanitized_name', $data))
904
-			 ->setConfig($this->getInt($prefix . 'config', $data))
905
-			 ->setSource($this->getInt($prefix . 'source', $data))
906
-			 ->setInstance($this->get($prefix . 'instance', $data))
907
-			 ->setSettings($this->getArray($prefix . 'settings', $data))
908
-			 ->setContactAddressBook($this->getInt($prefix . 'contact_addressbook', $data))
909
-			 ->setContactGroupName($this->get($prefix . 'contact_groupname', $data))
910
-			 ->setDescription($this->get($prefix . 'description', $data));
911
-
912
-		$creation = $this->get($prefix . 'creation', $data);
900
+		$this->setSingleId($this->get($prefix.'unique_id', $data))
901
+			 ->setName($this->get($prefix.'name', $data))
902
+			 ->setDisplayName($this->get($prefix.'display_name', $data))
903
+			 ->setSanitizedName($this->get($prefix.'sanitized_name', $data))
904
+			 ->setConfig($this->getInt($prefix.'config', $data))
905
+			 ->setSource($this->getInt($prefix.'source', $data))
906
+			 ->setInstance($this->get($prefix.'instance', $data))
907
+			 ->setSettings($this->getArray($prefix.'settings', $data))
908
+			 ->setContactAddressBook($this->getInt($prefix.'contact_addressbook', $data))
909
+			 ->setContactGroupName($this->get($prefix.'contact_groupname', $data))
910
+			 ->setDescription($this->get($prefix.'description', $data));
911
+
912
+		$creation = $this->get($prefix.'creation', $data);
913 913
 		$dateTime = DateTime::createFromFormat('Y-m-d H:i:s', $creation);
914
-		$timestamp = $dateTime ? $dateTime->getTimestamp() : (int) strtotime($creation);
914
+		$timestamp = $dateTime ? $dateTime->getTimestamp() : (int)strtotime($creation);
915 915
 		$this->setCreation($timestamp);
916 916
 
917 917
 		$this->setPopulation($this->getInt('population', $this->getSettings()));
Please login to merge, or discard this patch.
lib/Model/ShareWrapper.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 			$l10n = \OCP\Server::get(IFactory::class)->get('circles');
448 448
 			$display = $l10n->t('%s (Circle owned by %s)', [$display, $circle->getOwner()->getDisplayName()]);
449 449
 		} else {
450
-			$display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';
450
+			$display .= ' ('.Circle::$DEF_SOURCE[$circle->getSource()].')';
451 451
 		}
452 452
 
453 453
 		$share->setSharedWithDisplayName($display);
@@ -533,20 +533,20 @@  discard block
 block discarded – undo
533 533
 
534 534
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
535 535
 		$shareTime = new DateTime();
536
-		$shareTime->setTimestamp($this->getInt($prefix . 'stime', $data));
537
-
538
-		$this->setId($this->get($prefix . 'id', $data))
539
-			 ->setShareType($this->getInt($prefix . 'share_type', $data))
540
-			 ->setPermissions($this->getInt($prefix . 'permissions', $data))
541
-			 ->setItemType($this->get($prefix . 'item_type', $data))
542
-			 ->setItemSource($this->getInt($prefix . 'item_source', $data))
543
-			 ->setItemTarget($this->get($prefix . 'item_target', $data))
544
-			 ->setFileSource($this->getInt($prefix . 'file_source', $data))
545
-			 ->setFileTarget($this->get($prefix . 'file_target', $data))
546
-			 ->setSharedWith($this->get($prefix . 'share_with', $data))
547
-			 ->setSharedBy($this->get($prefix . 'uid_initiator', $data))
548
-			 ->setShareOwner($this->get($prefix . 'uid_owner', $data))
549
-			 ->setToken($this->get($prefix . 'token', $data))
536
+		$shareTime->setTimestamp($this->getInt($prefix.'stime', $data));
537
+
538
+		$this->setId($this->get($prefix.'id', $data))
539
+			 ->setShareType($this->getInt($prefix.'share_type', $data))
540
+			 ->setPermissions($this->getInt($prefix.'permissions', $data))
541
+			 ->setItemType($this->get($prefix.'item_type', $data))
542
+			 ->setItemSource($this->getInt($prefix.'item_source', $data))
543
+			 ->setItemTarget($this->get($prefix.'item_target', $data))
544
+			 ->setFileSource($this->getInt($prefix.'file_source', $data))
545
+			 ->setFileTarget($this->get($prefix.'file_target', $data))
546
+			 ->setSharedWith($this->get($prefix.'share_with', $data))
547
+			 ->setSharedBy($this->get($prefix.'uid_initiator', $data))
548
+			 ->setShareOwner($this->get($prefix.'uid_owner', $data))
549
+			 ->setToken($this->get($prefix.'token', $data))
550 550
 			 ->setShareTime($shareTime);
551 551
 
552 552
 		$this->importAttributesFromDatabase($this->get('attributes', $data));
@@ -557,9 +557,9 @@  discard block
 block discarded – undo
557 557
 		//			$share->setPassword($this->get('password', $data, ''));
558 558
 		//		}
559 559
 
560
-		$this->setChildId($this->getInt($prefix . 'child_id', $data))
561
-			 ->setChildFileTarget($this->get($prefix . 'child_file_target', $data))
562
-			 ->setChildPermissions($this->getInt($prefix . 'child_permissions', $data))
560
+		$this->setChildId($this->getInt($prefix.'child_id', $data))
561
+			 ->setChildFileTarget($this->get($prefix.'child_file_target', $data))
562
+			 ->setChildPermissions($this->getInt($prefix.'child_permissions', $data))
563 563
 			 ->setProviderId(ShareByCircleProvider::IDENTIFIER)
564 564
 			 ->setStatus(Ishare::STATUS_ACCEPTED);
565 565
 
Please login to merge, or discard this patch.
lib/Db/CoreQueryBuilder.php 1 patch
Spacing   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -398,8 +398,8 @@  discard block
 block discarded – undo
398 398
 			foreach (explode(' ', $circle->getDisplayName()) as $word) {
399 399
 				$andX->add(
400 400
 					$expr->iLike(
401
-						$this->getDefaultSelectAlias() . '.' . 'display_name',
402
-						$this->createNamedParameter('%' . $word . '%')
401
+						$this->getDefaultSelectAlias().'.'.'display_name',
402
+						$this->createNamedParameter('%'.$word.'%')
403 403
 					)
404 404
 				);
405 405
 			}
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 			$this->generateRemoteInstanceSelectAlias($aliasRemoteInstance)
431 431
 				 ->leftJoin(
432 432
 				 	$alias, CoreRequestBuilder::TABLE_REMOTE, $aliasRemoteInstance,
433
-				 	$expr->eq($alias . '.instance', $aliasRemoteInstance . '.instance')
433
+				 	$expr->eq($alias.'.instance', $aliasRemoteInstance.'.instance')
434 434
 				 );
435 435
 		} catch (RequestBuilderException $e) {
436 436
 		}
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 		$expr = $this->expr();
483 483
 		$this->leftJoin(
484 484
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_REMOTE, $aliasRemote,
485
-			$expr->eq($aliasRemote . '.instance', $this->createNamedParameter($remoteInstance->getInstance()))
485
+			$expr->eq($aliasRemote.'.instance', $this->createNamedParameter($remoteInstance->getInstance()))
486 486
 		);
487 487
 	}
488 488
 
@@ -510,12 +510,12 @@  discard block
 block discarded – undo
510 510
 		$this->leftJoin(
511 511
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteMember,
512 512
 			$expr->andX(
513
-				$expr->eq($aliasRemoteMember . '.circle_id', $aliasCircle . '.unique_id'),
513
+				$expr->eq($aliasRemoteMember.'.circle_id', $aliasCircle.'.unique_id'),
514 514
 				$expr->eq(
515
-					$aliasRemoteMember . '.instance',
515
+					$aliasRemoteMember.'.instance',
516 516
 					$this->createNamedParameter($remoteInstance->getInstance())
517 517
 				),
518
-				$expr->gte($aliasRemoteMember . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
518
+				$expr->gte($aliasRemoteMember.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
519 519
 			)
520 520
 		);
521 521
 	}
@@ -547,21 +547,21 @@  discard block
 block discarded – undo
547 547
 		$this->leftJoin(
548 548
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircle,
549 549
 			$expr->andX(
550
-				$expr->eq($aliasRemoteCircle . '.single_id', $aliasCircle . '.unique_id'),
551
-				$expr->emptyString($aliasRemoteCircle . '.instance'),
552
-				$expr->gte($aliasRemoteCircle . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
550
+				$expr->eq($aliasRemoteCircle.'.single_id', $aliasCircle.'.unique_id'),
551
+				$expr->emptyString($aliasRemoteCircle.'.instance'),
552
+				$expr->gte($aliasRemoteCircle.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
553 553
 			)
554 554
 		);
555 555
 		$this->leftJoin(
556 556
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircleOwner,
557 557
 			$expr->andX(
558
-				$expr->eq($aliasRemoteCircle . '.circle_id', $aliasRemoteCircleOwner . '.circle_id'),
558
+				$expr->eq($aliasRemoteCircle.'.circle_id', $aliasRemoteCircleOwner.'.circle_id'),
559 559
 				$expr->eq(
560
-					$aliasRemoteCircleOwner . '.instance',
560
+					$aliasRemoteCircleOwner.'.instance',
561 561
 					$this->createNamedParameter($remoteInstance->getInstance())
562 562
 				),
563 563
 				$expr->eq(
564
-					$aliasRemoteCircleOwner . '.level', $this->createNamedParameter(Member::LEVEL_OWNER)
564
+					$aliasRemoteCircleOwner.'.level', $this->createNamedParameter(Member::LEVEL_OWNER)
565 565
 				)
566 566
 			)
567 567
 		);
@@ -594,16 +594,16 @@  discard block
 block discarded – undo
594 594
 		$expr = $this->expr();
595 595
 		$orX = $expr->orX();
596 596
 		$orX->add(
597
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE))
597
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE))
598 598
 		);
599 599
 
600 600
 		$orExtOrPassive = $expr->orX();
601 601
 		$orExtOrPassive->add(
602
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
602
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
603 603
 		);
604 604
 		if (!$sensitive) {
605 605
 			$orExtOrPassive->add(
606
-				$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
606
+				$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
607 607
 			);
608 608
 		} else {
609 609
 			if ($this->getDefaultSelectAlias() === CoreQueryBuilder::MEMBER) {
@@ -612,8 +612,8 @@  discard block
 block discarded – undo
612 612
 		}
613 613
 
614 614
 		$orInstance = $expr->orX();
615
-		$orInstance->add($expr->isNotNull($aliasRemoteMember . '.instance'));
616
-		$orInstance->add($expr->isNotNull($aliasRemoteCircleOwner . '.instance'));
615
+		$orInstance->add($expr->isNotNull($aliasRemoteMember.'.instance'));
616
+		$orInstance->add($expr->isNotNull($aliasRemoteCircleOwner.'.instance'));
617 617
 
618 618
 		$andExternal = $expr->andX();
619 619
 		$andExternal->add($orExtOrPassive);
@@ -622,13 +622,13 @@  discard block
 block discarded – undo
622 622
 		$orExtOrTrusted = $expr->orX();
623 623
 		$orExtOrTrusted->add($andExternal);
624 624
 		$orExtOrTrusted->add(
625
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
625
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
626 626
 		);
627 627
 
628 628
 		$andTrusted = $expr->andX();
629 629
 		$andTrusted->add($orExtOrTrusted);
630 630
 		$andTrusted->add($this->exprLimitBitwise('config', Circle::CFG_FEDERATED, $aliasCircle));
631
-		$andTrusted->add($expr->emptyString($aliasOwner . '.instance'));
631
+		$andTrusted->add($expr->emptyString($aliasOwner.'.instance'));
632 632
 		$orX->add($andTrusted);
633 633
 
634 634
 		$this->andWhere($orX);
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
 		}
656 656
 		$this->innerJoin(
657 657
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
658
-			$expr->eq($aliasMember . '.circle_id', $alias . '.unique_id')
658
+			$expr->eq($aliasMember.'.circle_id', $alias.'.unique_id')
659 659
 		);
660 660
 
661 661
 		$this->filterDirectMembership($aliasMember, $member);
@@ -680,12 +680,12 @@  discard block
 block discarded – undo
680 680
 			$aliasCircle,
681 681
 			'circles_membership',
682 682
 			$aliasMembership,
683
-			$this->expr()->eq($aliasCircle . '.unique_id', $aliasMembership . '.circle_id')
683
+			$this->expr()->eq($aliasCircle.'.unique_id', $aliasMembership.'.circle_id')
684 684
 		);
685 685
 
686 686
 		$this->andWhere(
687 687
 			$this->expr()->eq(
688
-				$aliasMembership . '.single_id',
688
+				$aliasMembership.'.single_id',
689 689
 				$this->createNamedParameter($federatedUser->getSingleId())
690 690
 			)
691 691
 		);
@@ -706,19 +706,19 @@  discard block
 block discarded – undo
706 706
 
707 707
 		if ($member->getUserId() !== '') {
708 708
 			$andX->add(
709
-				$expr->eq($aliasMember . '.user_id', $this->createNamedParameter($member->getUserId()))
709
+				$expr->eq($aliasMember.'.user_id', $this->createNamedParameter($member->getUserId()))
710 710
 			);
711 711
 		}
712 712
 
713 713
 		if ($member->getSingleId() !== '') {
714 714
 			$andX->add(
715
-				$expr->eq($aliasMember . '.single_id', $this->createNamedParameter($member->getSingleId()))
715
+				$expr->eq($aliasMember.'.single_id', $this->createNamedParameter($member->getSingleId()))
716 716
 			);
717 717
 		}
718 718
 
719 719
 		if ($member->getUserType() > 0) {
720 720
 			$andX->add(
721
-				$expr->eq($aliasMember . '.user_type', $this->createNamedParameter($member->getUserType()))
721
+				$expr->eq($aliasMember.'.user_type', $this->createNamedParameter($member->getUserType()))
722 722
 			);
723 723
 		}
724 724
 
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
 		if ($member->getLevel() > 0) {
728 728
 			$andX->add(
729 729
 				$expr->gte(
730
-					$aliasMember . '.level',
730
+					$aliasMember.'.level',
731 731
 					$this->createNamedParameter($member->getLevel(), IQueryBuilder::PARAM_INT)
732 732
 				)
733 733
 			);
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
 			$helperAlias,
769 769
 			CoreRequestBuilder::TABLE_CIRCLE,
770 770
 			$aliasCircle,
771
-			$expr->eq($aliasCircle . '.unique_id', $helperAlias . '.' . $field)
771
+			$expr->eq($aliasCircle.'.unique_id', $helperAlias.'.'.$field)
772 772
 		);
773 773
 
774 774
 		if (!is_null($initiator)) {
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 		$this->generateCircleSelectAlias($aliasInvitedBy)
800 800
 			 ->leftJoin(
801 801
 			 	$aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasInvitedBy,
802
-			 	$expr->eq($aliasMember . '.invited_by', $aliasInvitedBy . '.unique_id')
802
+			 	$expr->eq($aliasMember.'.invited_by', $aliasInvitedBy.'.unique_id')
803 803
 			 );
804 804
 
805 805
 		$this->leftJoinOwner($aliasInvitedBy);
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
 		$this->generateCircleSelectAlias($aliasBasedOn)
831 831
 			 ->leftJoin(
832 832
 			 	$aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasBasedOn,
833
-			 	$expr->eq($aliasBasedOn . '.unique_id', $aliasMember . '.single_id')
833
+			 	$expr->eq($aliasBasedOn.'.unique_id', $aliasMember.'.single_id')
834 834
 			 );
835 835
 
836 836
 		if (!is_null($initiator)) {
@@ -863,9 +863,9 @@  discard block
 block discarded – undo
863 863
 			 ->leftJoin(
864 864
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
865 865
 			 	$expr->andX(
866
-			 		$expr->eq($aliasMember . '.circle_id', $alias . '.' . $field),
866
+			 		$expr->eq($aliasMember.'.circle_id', $alias.'.'.$field),
867 867
 			 		$expr->eq(
868
-			 			$aliasMember . '.level',
868
+			 			$aliasMember.'.level',
869 869
 			 			$this->createNamedParameter(Member::LEVEL_OWNER, self::PARAM_INT)
870 870
 			 		)
871 871
 			 	)
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 
898 898
 		$expr = $this->expr();
899 899
 
900
-		$on = $expr->andX($expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field));
900
+		$on = $expr->andX($expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field));
901 901
 
902 902
 		// limit on membership level if requested
903 903
 		$minLevel = $probe->getMinimumLevel();
@@ -938,8 +938,8 @@  discard block
 block discarded – undo
938 938
 			 ->leftJoin(
939 939
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
940 940
 			 	$expr->andX(
941
-			 		$expr->eq($aliasMember . '.circle_id', $alias . '.' . $fieldCircleId),
942
-			 		$expr->eq($aliasMember . '.single_id', $alias . '.' . $fieldSingleId),
941
+			 		$expr->eq($aliasMember.'.circle_id', $alias.'.'.$fieldCircleId),
942
+			 		$expr->eq($aliasMember.'.single_id', $alias.'.'.$fieldSingleId),
943 943
 			 		$this->exprGt('level', Member::LEVEL_MEMBER, true, $aliasMember)
944 944
 			 	)
945 945
 			 );
@@ -971,7 +971,7 @@  discard block
 block discarded – undo
971 971
 
972 972
 		$this->leftJoin(
973 973
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership,
974
-			$expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field)
974
+			$expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field)
975 975
 		);
976 976
 
977 977
 		//		if (!$this->getBool('getData', $options, false)) {
@@ -985,8 +985,8 @@  discard block
 block discarded – undo
985 985
 			 ->leftJoin(
986 986
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy,
987 987
 			 	$expr->andX(
988
-			 		$expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id'),
989
-			 		$expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id')
988
+			 		$expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id'),
989
+			 		$expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id')
990 990
 			 	)
991 991
 			 );
992 992
 
@@ -1003,12 +1003,12 @@  discard block
 block discarded – undo
1003 1003
 		$aliasUpstreamMembership = $this->generateAlias($alias, self::UPSTREAM_MEMBERSHIPS, $options);
1004 1004
 		$this->leftJoin(
1005 1005
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasUpstreamMembership,
1006
-			$expr->eq($aliasUpstreamMembership . '.single_id', $this->createNamedParameter($singleId))
1006
+			$expr->eq($aliasUpstreamMembership.'.single_id', $this->createNamedParameter($singleId))
1007 1007
 		);
1008 1008
 
1009 1009
 		$orX = $expr->orX(
1010
-			$expr->eq($aliasUpstreamMembership . '.circle_id', $alias . '.' . $field),
1011
-			$expr->eq($alias . '.' . $field, $this->createNamedParameter($singleId))
1010
+			$expr->eq($aliasUpstreamMembership.'.circle_id', $alias.'.'.$field),
1011
+			$expr->eq($alias.'.'.$field, $this->createNamedParameter($singleId))
1012 1012
 		);
1013 1013
 
1014 1014
 		$this->andWhere($orX);
@@ -1029,11 +1029,11 @@  discard block
 block discarded – undo
1029 1029
 
1030 1030
 		$expr = $this->expr();
1031 1031
 		$aliasMembership = $this->generateAlias($alias, self::MEMBERSHIPS);
1032
-		$this->andWhere($expr->eq($aliasMembership . '.circle_id', $this->createNamedParameter($singleId)));
1032
+		$this->andWhere($expr->eq($aliasMembership.'.circle_id', $this->createNamedParameter($singleId)));
1033 1033
 		if ($level > 1) {
1034 1034
 			$this->andWhere(
1035 1035
 				$expr->gte(
1036
-					$aliasMembership . '.level',
1036
+					$aliasMembership.'.level',
1037 1037
 					$this->createNamedParameter($level, IQueryBuilder::PARAM_INT)
1038 1038
 				)
1039 1039
 			);
@@ -1061,8 +1061,8 @@  discard block
 block discarded – undo
1061 1061
 		$this->leftJoin(
1062 1062
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership,
1063 1063
 			$expr->andX(
1064
-				$expr->eq($aliasMembership . '.inheritance_last', $alias . '.' . $field),
1065
-				$expr->eq($aliasMembership . '.single_id', $alias . '.single_id')
1064
+				$expr->eq($aliasMembership.'.inheritance_last', $alias.'.'.$field),
1065
+				$expr->eq($aliasMembership.'.single_id', $alias.'.single_id')
1066 1066
 			)
1067 1067
 		);
1068 1068
 
@@ -1075,8 +1075,8 @@  discard block
 block discarded – undo
1075 1075
 			 ->leftJoin(
1076 1076
 			 	$aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritanceFrom,
1077 1077
 			 	$expr->andX(
1078
-			 		$expr->eq($aliasMembership . '.circle_id', $aliasInheritanceFrom . '.circle_id'),
1079
-			 		$expr->eq($aliasMembership . '.inheritance_first', $aliasInheritanceFrom . '.single_id')
1078
+			 		$expr->eq($aliasMembership.'.circle_id', $aliasInheritanceFrom.'.circle_id'),
1079
+			 		$expr->eq($aliasMembership.'.inheritance_first', $aliasInheritanceFrom.'.single_id')
1080 1080
 			 	)
1081 1081
 			 );
1082 1082
 	}
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
 
1117 1117
 		$this->leftJoin(
1118 1118
 			$alias, CoreRequestBuilder::TABLE_TOKEN, $aliasShareToken,
1119
-			$expr->eq($aliasShareToken . '.share_id', $alias . '.' . $field)
1119
+			$expr->eq($aliasShareToken.'.share_id', $alias.'.'.$field)
1120 1120
 		);
1121 1121
 	}
1122 1122
 
@@ -1158,14 +1158,14 @@  discard block
 block discarded – undo
1158 1158
 		try {
1159 1159
 			$aliasConfig = $this->generateAlias($alias, self::CONFIG, $options);
1160 1160
 			$this->selectAlias(
1161
-				$aliasConfig . '.config',
1162
-				(($alias !== $this->getDefaultSelectAlias()) ? $alias . '_' : '') . 'circle_config'
1161
+				$aliasConfig.'.config',
1162
+				(($alias !== $this->getDefaultSelectAlias()) ? $alias.'_' : '').'circle_config'
1163 1163
 			);
1164 1164
 			$this->leftJoin(
1165 1165
 				$alias,
1166 1166
 				CoreRequestBuilder::TABLE_CIRCLE,
1167 1167
 				$aliasConfig,
1168
-				$expr->eq($alias . '.circle_id', $aliasConfig . '.unique_id')
1168
+				$expr->eq($alias.'.circle_id', $aliasConfig.'.unique_id')
1169 1169
 			);
1170 1170
 		} catch (RequestBuilderException $e) {
1171 1171
 		}
@@ -1203,7 +1203,7 @@  discard block
 block discarded – undo
1203 1203
 			$aliasMembership,
1204 1204
 			$expr->andX(
1205 1205
 				$this->exprLimit('single_id', $initiator->getSingleId(), $aliasMembership),
1206
-				$expr->eq($aliasMembership . '.circle_id', $helperAlias . '.' . $field)
1206
+				$expr->eq($aliasMembership.'.circle_id', $helperAlias.'.'.$field)
1207 1207
 			)
1208 1208
 		);
1209 1209
 
@@ -1222,11 +1222,11 @@  discard block
 block discarded – undo
1222 1222
 			$aliasMembershipCircle = $this->generateAlias($aliasMembership, self::CONFIG, $options);
1223 1223
 			$orXMembershipCircle = $expr->orX();
1224 1224
 			array_map(
1225
-				function (string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) {
1225
+				function(string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) {
1226 1226
 					$orXMembershipCircle->add(
1227 1227
 						$this->expr()->eq(
1228
-							$alias . '.circle_id',
1229
-							$aliasMembershipCircle . '.unique_id'
1228
+							$alias.'.circle_id',
1229
+							$aliasMembershipCircle.'.unique_id'
1230 1230
 						)
1231 1231
 					);
1232 1232
 				},
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
 					 	$aliasDirectInitiator,
1259 1259
 					 	$expr->andX(
1260 1260
 					 		$this->exprLimit('single_id', $initiator->getSingleId(), $aliasDirectInitiator),
1261
-					 		$expr->eq($aliasDirectInitiator . '.circle_id', $helperAlias . '.' . $field)
1261
+					 		$expr->eq($aliasDirectInitiator.'.circle_id', $helperAlias.'.'.$field)
1262 1262
 					 	)
1263 1263
 					 );
1264 1264
 			} catch (RequestBuilderException $e) {
@@ -1272,8 +1272,8 @@  discard block
 block discarded – undo
1272 1272
 			$this->leftJoin(
1273 1273
 				$aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator,
1274 1274
 				$expr->andX(
1275
-					$expr->eq($aliasMembership . '.inheritance_first', $aliasInitiator . '.single_id'),
1276
-					$expr->eq($aliasMembership . '.circle_id', $aliasInitiator . '.circle_id')
1275
+					$expr->eq($aliasMembership.'.inheritance_first', $aliasInitiator.'.single_id'),
1276
+					$expr->eq($aliasMembership.'.circle_id', $aliasInitiator.'.circle_id')
1277 1277
 				)
1278 1278
 			);
1279 1279
 
@@ -1281,8 +1281,8 @@  discard block
 block discarded – undo
1281 1281
 			$this->leftJoin(
1282 1282
 				$aliasInitiator, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy,
1283 1283
 				$expr->andX(
1284
-					$expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id'),
1285
-					$expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id')
1284
+					$expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id'),
1285
+					$expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id')
1286 1286
 				)
1287 1287
 			);
1288 1288
 
@@ -1327,7 +1327,7 @@  discard block
 block discarded – undo
1327 1327
 			 ->leftJoin(
1328 1328
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator,
1329 1329
 			 	$expr->andX(
1330
-			 		$expr->eq($aliasInitiator . '.circle_id', $helperAlias . '.' . $field),
1330
+			 		$expr->eq($aliasInitiator.'.circle_id', $helperAlias.'.'.$field),
1331 1331
 			 		$this->exprLimitInt('level', Member::LEVEL_OWNER, $aliasInitiator)
1332 1332
 			 	)
1333 1333
 			 );
@@ -1365,7 +1365,7 @@  discard block
 block discarded – undo
1365 1365
 			$orX->add(
1366 1366
 				$expr->andX(
1367 1367
 					$this->exprLimitBitwise('config', Circle::CFG_PERSONAL, $aliasMembershipCircle),
1368
-					$expr->eq($aliasMembership . '.level', $this->createNamedParameter(Member::LEVEL_OWNER))
1368
+					$expr->eq($aliasMembership.'.level', $this->createNamedParameter(Member::LEVEL_OWNER))
1369 1369
 				)
1370 1370
 			);
1371 1371
 		}
@@ -1375,10 +1375,10 @@  discard block
 block discarded – undo
1375 1375
 		$orXLevelCheck = $expr->orX();
1376 1376
 
1377 1377
 		array_map(
1378
-			function (string $alias) use ($orXLevelCheck, $minimumLevel) {
1378
+			function(string $alias) use ($orXLevelCheck, $minimumLevel) {
1379 1379
 				$orXLevelCheck->add(
1380 1380
 					$this->expr()->gte(
1381
-						$alias . '.level',
1381
+						$alias.'.level',
1382 1382
 						$this->createNamedParameter($minimumLevel, self::PARAM_INT)
1383 1383
 					)
1384 1384
 				);
@@ -1459,21 +1459,21 @@  discard block
 block discarded – undo
1459 1459
 		$expr = $this->expr();
1460 1460
 		$andPassive = $expr->andX();
1461 1461
 		$andPassive->add(
1462
-			$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
1462
+			$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
1463 1463
 		);
1464 1464
 
1465 1465
 		$orMemberOrLevel = $expr->orX();
1466 1466
 		$orMemberOrLevel->add(
1467
-			$expr->eq($this->getDefaultSelectAlias() . '.instance', $alias . '.instance')
1467
+			$expr->eq($this->getDefaultSelectAlias().'.instance', $alias.'.instance')
1468 1468
 		);
1469 1469
 		// TODO: do we need this ? (display members from the local instance)
1470 1470
 		$orMemberOrLevel->add(
1471
-			$expr->emptyString($this->getDefaultSelectAlias() . '.instance')
1471
+			$expr->emptyString($this->getDefaultSelectAlias().'.instance')
1472 1472
 		);
1473 1473
 
1474 1474
 		$orMemberOrLevel->add(
1475 1475
 			$expr->eq(
1476
-				$this->getDefaultSelectAlias() . '.level',
1476
+				$this->getDefaultSelectAlias().'.level',
1477 1477
 				$this->createNamedParameter(Member::LEVEL_OWNER)
1478 1478
 			)
1479 1479
 		);
@@ -1510,11 +1510,11 @@  discard block
 block discarded – undo
1510 1510
 			 )
1511 1511
 			 ->leftJoin(
1512 1512
 			 	$aliasShare, CoreRequestBuilder::TABLE_FILE_CACHE, $aliasFileCache,
1513
-			 	$expr->eq($aliasShare . '.file_source', $aliasFileCache . '.fileid')
1513
+			 	$expr->eq($aliasShare.'.file_source', $aliasFileCache.'.fileid')
1514 1514
 			 )
1515 1515
 			 ->leftJoin(
1516 1516
 			 	$aliasFileCache, CoreRequestBuilder::TABLE_STORAGES, $aliasStorages,
1517
-			 	$expr->eq($aliasFileCache . '.storage', $aliasStorages . '.numeric_id')
1517
+			 	$expr->eq($aliasFileCache.'.storage', $aliasStorages.'.numeric_id')
1518 1518
 			 );
1519 1519
 	}
1520 1520
 
@@ -1536,8 +1536,8 @@  discard block
 block discarded – undo
1536 1536
 		$this->leftJoin(
1537 1537
 			$aliasShareMemberships, CoreRequestBuilder::TABLE_SHARE, $aliasShareChild,
1538 1538
 			$expr->andX(
1539
-				$expr->eq($aliasShareChild . '.parent', $aliasShare . '.id'),
1540
-				$expr->eq($aliasShareChild . '.share_with', $aliasShareMemberships . '.single_id')
1539
+				$expr->eq($aliasShareChild.'.parent', $aliasShare.'.id'),
1540
+				$expr->eq($aliasShareChild.'.share_with', $aliasShareMemberships.'.single_id')
1541 1541
 			)
1542 1542
 		);
1543 1543
 
@@ -1595,13 +1595,13 @@  discard block
 block discarded – undo
1595 1595
 		$this->leftJoin(
1596 1596
 			$aliasMountMemberships, CoreRequestBuilder::TABLE_MOUNTPOINT, $aliasMountpoint,
1597 1597
 			$expr->andX(
1598
-				$expr->eq($aliasMountpoint . '.mount_id', $aliasMount . '.mount_id'),
1599
-				$expr->eq($aliasMountpoint . '.single_id', $aliasMountMemberships . '.single_id')
1598
+				$expr->eq($aliasMountpoint.'.mount_id', $aliasMount.'.mount_id'),
1599
+				$expr->eq($aliasMountpoint.'.single_id', $aliasMountMemberships.'.single_id')
1600 1600
 			)
1601 1601
 		);
1602 1602
 
1603
-		$this->selectAlias($aliasMountpoint . '.mountpoint', $aliasMountpoint . '_mountpoint');
1604
-		$this->selectAlias($aliasMountpoint . '.mountpoint_hash', $aliasMountpoint . '_mountpoint_hash');
1603
+		$this->selectAlias($aliasMountpoint.'.mountpoint', $aliasMountpoint.'_mountpoint');
1604
+		$this->selectAlias($aliasMountpoint.'.mountpoint_hash', $aliasMountpoint.'_mountpoint_hash');
1605 1605
 	}
1606 1606
 
1607 1607
 
@@ -1709,10 +1709,10 @@  discard block
 block discarded – undo
1709 1709
 	 */
1710 1710
 	public function generateAlias(string $base, string $extension, ?array &$options = []): string {
1711 1711
 		$search = str_replace('_', '.', $base);
1712
-		$path = $search . '.' . $extension;
1712
+		$path = $search.'.'.$extension;
1713 1713
 		if (!$this->validKey($path, $this->getSqlPath())
1714 1714
 			&& !in_array($extension, $this->getArray($search, $this->getSqlPath()))) {
1715
-			throw new RequestBuilderException($extension . ' not found in ' . $search);
1715
+			throw new RequestBuilderException($extension.' not found in '.$search);
1716 1716
 		}
1717 1717
 
1718 1718
 		if (!is_array($options)) {
@@ -1721,15 +1721,15 @@  discard block
 block discarded – undo
1721 1721
 
1722 1722
 		$optionPath = '';
1723 1723
 		foreach (explode('.', $path) as $p) {
1724
-			$optionPath = trim($optionPath . '.' . $p, '.');
1724
+			$optionPath = trim($optionPath.'.'.$p, '.');
1725 1725
 			$options = array_merge(
1726 1726
 				$options,
1727
-				$this->getArray($optionPath . '.' . self::OPTIONS, $this->getSqlPath()),
1728
-				$this->getArray($optionPath . '.' . self::OPTIONS, $this->options)
1727
+				$this->getArray($optionPath.'.'.self::OPTIONS, $this->getSqlPath()),
1728
+				$this->getArray($optionPath.'.'.self::OPTIONS, $this->options)
1729 1729
 			);
1730 1730
 		}
1731 1731
 
1732
-		return $base . '_' . $extension;
1732
+		return $base.'_'.$extension;
1733 1733
 	}
1734 1734
 
1735 1735
 
@@ -1749,7 +1749,7 @@  discard block
 block discarded – undo
1749 1749
 			} else {
1750 1750
 				$k = $arr;
1751 1751
 			}
1752
-			$path[$k] = $prefix . '_' . $k . '_';
1752
+			$path[$k] = $prefix.'_'.$k.'_';
1753 1753
 		}
1754 1754
 
1755 1755
 		return $path;
Please login to merge, or discard this patch.
lib/Command/CirclesCheck.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 			throw new Exception('Please specify a --type for the test');
178 178
 		}
179 179
 		if ($test !== '' && !in_array($type, self::$checks)) {
180
-			throw new Exception('Unknown type: ' . implode(', ', self::$checks));
180
+			throw new Exception('Unknown type: '.implode(', ', self::$checks));
181 181
 		}
182 182
 
183 183
 		//		$this->configService->setAppValue(ConfigService::TEST_NC_BASE, $test);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 		}
236 236
 
237 237
 		$output->writeln('');
238
-		$output->writeln('* testing current address: ' . $test);
238
+		$output->writeln('* testing current address: '.$test);
239 239
 
240 240
 		try {
241 241
 			$this->setupLoopback($input, $output, $test);
@@ -271,8 +271,8 @@  discard block
 block discarded – undo
271 271
 				continue;
272 272
 			}
273 273
 
274
-			$loopback = rtrim($scheme . '://' . $cloudId . $path, '/');
275
-			$output->writeln('* testing address: ' . $loopback . ' ');
274
+			$loopback = rtrim($scheme.'://'.$cloudId.$path, '/');
275
+			$output->writeln('* testing address: '.$loopback.' ');
276 276
 
277 277
 			try {
278 278
 				$this->setupLoopback($input, $output, $loopback);
@@ -345,8 +345,8 @@  discard block
 block discarded – undo
345 345
 		$test = new FederatedEvent(LoopbackTest::class);
346 346
 		$this->federatedEventService->newEvent($test);
347 347
 		$output->writeln(
348
-			'<info>' . $test->getWrapperToken() . '</info> ' .
349
-			'(took ' . (round(microtime(true) * 1000) - $timer) . 'ms)'
348
+			'<info>'.$test->getWrapperToken().'</info> '.
349
+			'(took '.(round(microtime(true) * 1000) - $timer).'ms)'
350 350
 		);
351 351
 
352 352
 		$output->writeln('- Waiting for async process to finish (5s)');
@@ -365,18 +365,18 @@  discard block
 block discarded – undo
365 365
 
366 366
 		$checkVerify = $wrapper->getEvent()->getData()->gInt('verify');
367 367
 		if ($checkVerify === LoopbackTest::VERIFY) {
368
-			$output->write('<info>verify=' . $checkVerify . '</info> ');
368
+			$output->write('<info>verify='.$checkVerify.'</info> ');
369 369
 		} else {
370
-			$output->writeln('<error>verify=' . $checkVerify . '</error>');
370
+			$output->writeln('<error>verify='.$checkVerify.'</error>');
371 371
 
372 372
 			return false;
373 373
 		}
374 374
 
375 375
 		$checkManage = $wrapper->getResult()->gInt('manage');
376 376
 		if ($checkManage === LoopbackTest::MANAGE) {
377
-			$output->write('<info>manage=' . $checkManage . '</info> ');
377
+			$output->write('<info>manage='.$checkManage.'</info> ');
378 378
 		} else {
379
-			$output->writeln('<error>manage=' . $checkManage . '</error>');
379
+			$output->writeln('<error>manage='.$checkManage.'</error>');
380 380
 
381 381
 			return false;
382 382
 		}
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 		$this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_ID, $cloudId);
416 416
 		$this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_PATH, $path);
417 417
 		$output->writeln(
418
-			'- Address <info>' . $loopback . '</info> is now used as <info>loopback</info>'
418
+			'- Address <info>'.$loopback.'</info> is now used as <info>loopback</info>'
419 419
 		);
420 420
 	}
421 421
 
@@ -467,8 +467,8 @@  discard block
 block discarded – undo
467 467
 				continue;
468 468
 			}
469 469
 
470
-			$internal = rtrim($scheme . '://' . $cloudId, '/');
471
-			$fullInternal = rtrim($scheme . '://' . $cloudId . $path, '/');
470
+			$internal = rtrim($scheme.'://'.$cloudId, '/');
471
+			$fullInternal = rtrim($scheme.'://'.$cloudId.$path, '/');
472 472
 
473 473
 			$question = new ConfirmationQuestion(
474 474
 				'<comment>Do you want to check the validity of this internal address?</comment> (Y/n) ', true,
@@ -487,9 +487,9 @@  discard block
 block discarded – undo
487 487
 					'You will need to run this <info>curl</info> command from a terminal on your local network and paste its result: '
488 488
 				);
489 489
 				$output->writeln(
490
-					'     curl -L "' . $internal
490
+					'     curl -L "'.$internal
491 491
 					. '/.well-known/webfinger?resource=http://nextcloud.com/&test='
492
-					. $testToken . '"'
492
+					. $testToken.'"'
493 493
 				);
494 494
 
495 495
 				$output->writeln('paste the result here: ');
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 
524 524
 				if ($pastedHref !== $href) {
525 525
 					$output->writeln(
526
-						'<error>The returned data (' . $pastedHref . ') are not the one expected: </error>'
526
+						'<error>The returned data ('.$pastedHref.') are not the one expected: </error>'
527 527
 						. $href
528 528
 					);
529 529
 					continue;
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 					'Next step, please run this <info>curl</info> command from a terminal on your local network and paste its result: '
536 536
 				);
537 537
 				$output->writeln(
538
-					'     curl -L "' . $pastedHref . '?test=' . $testToken . '" -H "Accept: application/json"'
538
+					'     curl -L "'.$pastedHref.'?test='.$testToken.'" -H "Accept: application/json"'
539 539
 				);
540 540
 
541 541
 				$output->writeln('paste the result here: ');
@@ -552,9 +552,9 @@  discard block
 block discarded – undo
552 552
 					|| $appSignatory->getRoot() !== $pastedSignatory->g('root')) {
553 553
 					$output->writeln(
554 554
 						'<error>The returned data ('
555
-						. $pastedSignatory->g('uid') . '/' . $pastedSignatory->g('root')
555
+						. $pastedSignatory->g('uid').'/'.$pastedSignatory->g('root')
556 556
 						. ') are not the one expected: </error>'
557
-						. $appSignatory->getUid(true) . '/' . $appSignatory->getRoot()
557
+						. $appSignatory->getUid(true).'/'.$appSignatory->getRoot()
558 558
 					);
559 559
 					continue;
560 560
 				}
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 
582 582
 		$output->writeln('');
583 583
 		$question = new ConfirmationQuestion(
584
-			'- Do you want to save <info>' . $internal
584
+			'- Do you want to save <info>'.$internal
585 585
 			. '</info> as your <info>internal</info> address ? (y/N) ',
586 586
 			false, '/^(y|Y)/i'
587 587
 		);
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
 		$this->configService->setAppValue(ConfigService::INTERNAL_CLOUD_ID, $cloudId);
598 598
 		$this->configService->setAppValue(ConfigService::INTERNAL_CLOUD_PATH, $path);
599 599
 
600
-		$output->writeln('- Address <info>' . $internal . '</info> is now used as <info>internal</info>');
600
+		$output->writeln('- Address <info>'.$internal.'</info> is now used as <info>internal</info>');
601 601
 	}
602 602
 
603 603
 
@@ -649,8 +649,8 @@  discard block
 block discarded – undo
649 649
 				continue;
650 650
 			}
651 651
 
652
-			$frontal = rtrim($scheme . '://' . $cloudId, '/');
653
-			$fullFrontal = rtrim($scheme . '://' . $cloudId . $path, '/');
652
+			$frontal = rtrim($scheme.'://'.$cloudId, '/');
653
+			$fullFrontal = rtrim($scheme.'://'.$cloudId.$path, '/');
654 654
 
655 655
 			$question = new ConfirmationQuestion(
656 656
 				'<comment>Do you want to check the validity of this frontal address?</comment> (y/N) ', false,
@@ -669,9 +669,9 @@  discard block
 block discarded – undo
669 669
 					'You will need to run this <info>curl</info> command from a remote terminal and paste its result: '
670 670
 				);
671 671
 				$output->writeln(
672
-					'     curl -L "' . $frontal
672
+					'     curl -L "'.$frontal
673 673
 					. '/.well-known/webfinger?resource=http://nextcloud.com/&test='
674
-					. $testToken . '"'
674
+					. $testToken.'"'
675 675
 				);
676 676
 
677 677
 
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
 
707 707
 				if ($pastedHref !== $href) {
708 708
 					$output->writeln(
709
-						'<error>The returned data (' . $pastedHref . ') are not the one expected: </error>'
709
+						'<error>The returned data ('.$pastedHref.') are not the one expected: </error>'
710 710
 						. $href
711 711
 					);
712 712
 					continue;
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 					'Next step, please run this <info>curl</info> command from a remote terminal and paste its result: '
719 719
 				);
720 720
 				$output->writeln(
721
-					'     curl -L "' . $pastedHref . '?test=' . $testToken . '" -H "Accept: application/json"'
721
+					'     curl -L "'.$pastedHref.'?test='.$testToken.'" -H "Accept: application/json"'
722 722
 				);
723 723
 
724 724
 				$output->writeln('paste the result here: ');
@@ -736,9 +736,9 @@  discard block
 block discarded – undo
736 736
 					|| $appSignatory->getRoot() !== $pastedSignatory->g('root')) {
737 737
 					$output->writeln(
738 738
 						'<error>The returned data ('
739
-						. $pastedSignatory->g('uid') . '/' . $pastedSignatory->g('root')
739
+						. $pastedSignatory->g('uid').'/'.$pastedSignatory->g('root')
740 740
 						. ') are not the one expected: </error>'
741
-						. $appSignatory->getUid(true) . '/' . $appSignatory->getRoot()
741
+						. $appSignatory->getUid(true).'/'.$appSignatory->getRoot()
742 742
 					);
743 743
 					continue;
744 744
 				}
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
 
766 766
 		$output->writeln('');
767 767
 		$question = new ConfirmationQuestion(
768
-			'- Do you want to save <info>' . $frontal
768
+			'- Do you want to save <info>'.$frontal
769 769
 			. '</info> as your <info>frontal</info> address ? (y/N) ',
770 770
 			false, '/^(y|Y)/i'
771 771
 		);
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 		$this->configService->setAppValue(ConfigService::FRONTAL_CLOUD_ID, $cloudId);
782 782
 		$this->configService->setAppValue(ConfigService::FRONTAL_CLOUD_PATH, $path);
783 783
 
784
-		$output->writeln('- Address <info>' . $frontal . '</info> is now used as <info>frontal</info>');
784
+		$output->writeln('- Address <info>'.$frontal.'</info> is now used as <info>frontal</info>');
785 785
 	}
786 786
 
787 787
 
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 			$request->setDataSerialize(new SimpleDataStore(['empty' => 1]));
808 808
 		}
809 809
 
810
-		$output->write('- ' . $type . ' request on ' . $request->getCompleteUrl() . ': ');
810
+		$output->write('- '.$type.' request on '.$request->getCompleteUrl().': ');
811 811
 
812 812
 		try {
813 813
 			$this->doRequest($request);
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
 				$color = 'info';
819 819
 			}
820 820
 
821
-			$output->writeln('<' . $color . '>' . $result->getStatusCode() . '</' . $color . '>');
821
+			$output->writeln('<'.$color.'>'.$result->getStatusCode().'</'.$color.'>');
822 822
 			if ($result->getStatusCode() === 200) {
823 823
 				return true;
824 824
 			}
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
 
843 843
 		$output->writeln('');
844 844
 		$output->writeln(
845
-			'The address <info>' . $address . '</info> seems to reach your local Nextcloud.'
845
+			'The address <info>'.$address.'</info> seems to reach your local Nextcloud.'
846 846
 		);
847 847
 
848 848
 		$helper = $this->getHelper('question');
@@ -859,8 +859,8 @@  discard block
 block discarded – undo
859 859
 
860 860
 		$this->configService->setAppValue(ConfigService::FORCE_NC_BASE, $address);
861 861
 		$output->writeln(
862
-			'New configuration <info>' . Application::APP_ID . '.' . ConfigService::FORCE_NC_BASE . '=\''
863
-			. $address . '\'</info> stored in database'
862
+			'New configuration <info>'.Application::APP_ID.'.'.ConfigService::FORCE_NC_BASE.'=\''
863
+			. $address.'\'</info> stored in database'
864 864
 		);
865 865
 	}
866 866
 
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
 		$path = rtrim($path, '/');
889 889
 
890 890
 		if (!is_null($cloudIdPort)) {
891
-			$cloudId = $cloudId . ':' . $cloudIdPort;
891
+			$cloudId = $cloudId.':'.$cloudIdPort;
892 892
 		}
893 893
 
894 894
 		return [$scheme, $cloudId, $path];
Please login to merge, or discard this patch.
lib/Command/MembersAdd.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 		} catch (FederatedItemException $e) {
130 130
 			if ($input->getOption('status-code')) {
131 131
 				throw new FederatedItemException(
132
-					' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage()
132
+					' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage()
133 133
 				);
134 134
 			}
135 135
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 				$instance = $host;
190 190
 			}
191 191
 
192
-			$result[] = $user['userid']['value'] . ' <info>@' . $host . '</info>';
192
+			$result[] = $user['userid']['value'].' <info>@'.$host.'</info>';
193 193
 		}
194 194
 
195 195
 		//		if ($userId === '') {
Please login to merge, or discard this patch.
lib/Command/CirclesMemberships.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -212,10 +212,10 @@  discard block
 block discarded – undo
212 212
 		//			return 0;
213 213
 		//		}
214 214
 
215
-		$output->writeln('Id: <info>' . $federatedUser->getUserId() . '</info>');
216
-		$output->writeln('Instance: <info>' . $federatedUser->getInstance() . '</info>');
217
-		$output->writeln('Type: <info>' . Member::$TYPE[$federatedUser->getUserType()] . '</info>');
218
-		$output->writeln('SingleId: <info>' . $federatedUser->getSingleId() . '</info>');
215
+		$output->writeln('Id: <info>'.$federatedUser->getUserId().'</info>');
216
+		$output->writeln('Instance: <info>'.$federatedUser->getInstance().'</info>');
217
+		$output->writeln('Type: <info>'.Member::$TYPE[$federatedUser->getUserType()].'</info>');
218
+		$output->writeln('SingleId: <info>'.$federatedUser->getSingleId().'</info>');
219 219
 
220 220
 		$output->writeln('');
221 221
 		$output->writeln('Memberships:');
@@ -224,14 +224,14 @@  discard block
 block discarded – undo
224 224
 		if ($count === 0) {
225 225
 			$output->writeln('(database not updated)');
226 226
 		} else {
227
-			$output->writeln('(' . $count . ' entries generated/updated in the database)');
227
+			$output->writeln('('.$count.' entries generated/updated in the database)');
228 228
 		}
229 229
 
230 230
 		foreach ($federatedUser->getMemberships() as $membership) {
231 231
 			$this->memberships[$membership->getCircleId()] = $membership;
232 232
 			$output->writeln(
233
-				'- <info>' . $membership->getCircleId() . '</info> ('
234
-				. Member::$DEF_LEVEL[$membership->getLevel()] . ')'
233
+				'- <info>'.$membership->getCircleId().'</info> ('
234
+				. Member::$DEF_LEVEL[$membership->getLevel()].')'
235 235
 			);
236 236
 		}
237 237
 
@@ -305,9 +305,9 @@  discard block
 block discarded – undo
305 305
 				if ($lineNumber === 2) {
306 306
 					return '';
307 307
 				}
308
-				$line .= '<info>' . $federatedUser->getSingleId() . '</info>';
308
+				$line .= '<info>'.$federatedUser->getSingleId().'</info>';
309 309
 				if (!$this->configService->isLocalInstance($federatedUser->getInstance())) {
310
-					$line .= '@' . $federatedUser->getInstance();
310
+					$line .= '@'.$federatedUser->getInstance();
311 311
 				}
312 312
 
313 313
 				return $line;
@@ -319,28 +319,28 @@  discard block
 block discarded – undo
319 319
 				$circle = $member->getCircle();
320 320
 
321 321
 				if ($lineNumber === 1) {
322
-					$line .= '<info>' . $circle->getSingleId() . '</info>';
322
+					$line .= '<info>'.$circle->getSingleId().'</info>';
323 323
 					if (!$this->configService->isLocalInstance($circle->getInstance())) {
324
-						$line .= '@' . $circle->getInstance();
324
+						$line .= '@'.$circle->getInstance();
325 325
 					}
326
-					$line .= ' (' . ($this->input->getOption('display-name') ?
327
-							$circle->getDisplayName() : $circle->getName()) . ')';
328
-					$line .= ' <info>MemberId</info>: ' . $member->getId();
329
-					$line .= ' <info>Level</info>: ' . Member::$DEF_LEVEL[$member->getLevel()];
326
+					$line .= ' ('.($this->input->getOption('display-name') ?
327
+							$circle->getDisplayName() : $circle->getName()).')';
328
+					$line .= ' <info>MemberId</info>: '.$member->getId();
329
+					$line .= ' <info>Level</info>: '.Member::$DEF_LEVEL[$member->getLevel()];
330 330
 
331 331
 					$knownMembership = $this->memberships[$member->getCircleId()];
332 332
 					if ($member->getLevel() !== $knownMembership->getLevel()) {
333
-						$line .= ' (' . Member::$DEF_LEVEL[$knownMembership->getLevel()] . ')';
333
+						$line .= ' ('.Member::$DEF_LEVEL[$knownMembership->getLevel()].')';
334 334
 					}
335 335
 				}
336 336
 				if ($lineNumber === 2) {
337 337
 					$owner = $circle->getOwner();
338
-					$line .= '<info>Owner</info>: ' . $owner->getUserId() . '@' . $owner->getInstance() . ' ';
338
+					$line .= '<info>Owner</info>: '.$owner->getUserId().'@'.$owner->getInstance().' ';
339 339
 					if ($owner->hasBasedOn()) {
340
-						$line .= '(' . Circle::$DEF_SOURCE[$owner->getBasedOn()->getSource()] . ') ';
340
+						$line .= '('.Circle::$DEF_SOURCE[$owner->getBasedOn()->getSource()].') ';
341 341
 					}
342 342
 					$type = implode(", ", Circle::getCircleFlags($circle, Circle::FLAGS_LONG));
343
-					$line .= ($type === '') ? '' : '<info>Config</info>: ' . $type;
343
+					$line .= ($type === '') ? '' : '<info>Config</info>: '.$type;
344 344
 				}
345 345
 
346 346
 				return $line;
@@ -399,6 +399,6 @@  discard block
 block discarded – undo
399 399
 			);
400 400
 		}
401 401
 
402
-		$output->writeln($count . ' memberships updated');
402
+		$output->writeln($count.' memberships updated');
403 403
 	}
404 404
 }
Please login to merge, or discard this patch.