Completed
Pull Request — master (#2253)
by
unknown
39s queued 10s
created
lib/Service/ActivityService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 		);
52 52
 
53 53
 		$this->userManager->callForSeenUsers(
54
-			function ($user) use ($event) {
54
+			function($user) use ($event) {
55 55
 				/** @var IUser $user */
56 56
 				$this->publishEvent($event, [$user]);
57 57
 			}
Please login to merge, or discard this patch.
lib/Command/MigrateCustomGroups.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
 
79 79
 			$name = $rowCG['display_name'];
80 80
 			while (strlen($name) < 3) {
81
-				$name = '_' . $name;
81
+				$name = '_'.$name;
82 82
 			}
83 83
 
84
-			$this->output->writeln('+ New Team <info>' . $name . '</info>, owned by <info>' . $ownerId . '</info>');
84
+			$this->output->writeln('+ New Team <info>'.$name.'</info>, owned by <info>'.$ownerId.'</info>');
85 85
 
86 86
 			// based on owner's userid, we create federateduser and a new circle
87 87
 			$owner = $this->cachedFed($ownerId);
88 88
 			if ($owner === null) {
89
-				$this->output->writeln('<error>unknown user</error> ' . $ownerId);
89
+				$this->output->writeln('<error>unknown user</error> '.$ownerId);
90 90
 				continue;
91 91
 			}
92 92
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			try {
96 96
 				$circle = $this->circlesManager->createCircle($name);
97 97
 			} catch (\Exception $e) {
98
-				$this->output->writeln('<error>' . get_class($e) . ' ' . $e->getMessage() . '</error> with data ' . json_encode($rowCG));
98
+				$this->output->writeln('<error>'.get_class($e).' '.$e->getMessage().'</error> with data '.json_encode($rowCG));
99 99
 				$this->logger->log(2, 'error while creating team', ['exception' => $e]);
100 100
 				$this->circlesManager->stopSession();
101 101
 				continue;
@@ -124,17 +124,17 @@  discard block
 block discarded – undo
124 124
 
125 125
 					$fedUser = $this->cachedFed($userId);
126 126
 					if ($fedUser === null) {
127
-						$this->output->writeln('<error>unknown user</error> ' . $userId);
127
+						$this->output->writeln('<error>unknown user</error> '.$userId);
128 128
 						continue;
129 129
 					}
130
-					$this->output->writeln(' - new member <info>' . $userId . '</info>');
130
+					$this->output->writeln(' - new member <info>'.$userId.'</info>');
131 131
 
132 132
 					$member = $this->circlesManager->addMember($circle->getSingleId(), $fedUser);
133 133
 					if ($rowM['role'] === '1') {
134 134
 						$this->circlesManager->levelMember($member->getId(), Member::LEVEL_ADMIN);
135 135
 					}
136 136
 				} catch (\Exception $e) {
137
-					$this->output->writeln('<error>' . get_class($e) . ' ' . $e->getMessage() . '</error>');
137
+					$this->output->writeln('<error>'.get_class($e).' '.$e->getMessage().'</error>');
138 138
 					$this->logger->log(2, 'error while migrating custom group member', ['exception' => $e]);
139 139
 				}
140 140
 			}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 			->where($update->expr()->in('id', $update->createNamedParameter($shareIds, IQueryBuilder::PARAM_INT_ARRAY)));
171 171
 
172 172
 		$count = $update->executeStatement();
173
-		$this->output->writeln('> ' . ((string)$count) . ' shares updated');
173
+		$this->output->writeln('> '.((string)$count).' shares updated');
174 174
 
175 175
 		$this->fixShareChildren($shareIds, $memberIds);
176 176
 	}
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 			try {
187 187
 				$this->fedList[$userId] = $this->circlesManager->getLocalFederatedUser($userId);
188 188
 			} catch (\Exception $e) {
189
-				$this->logger->warning('unknown local user ' . $userId, ['exception' => $e]);
189
+				$this->logger->warning('unknown local user '.$userId, ['exception' => $e]);
190 190
 				$this->fedList[$userId] = null;
191 191
 			}
192 192
 		}
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 			$count += $update->executeStatement();
221 221
 		}
222 222
 
223
-		$this->output->writeln('> ' . ((string)$count) . ' children shares updated');
223
+		$this->output->writeln('> '.((string)$count).' children shares updated');
224 224
 	}
225 225
 
226 226
 
Please login to merge, or discard this patch.
lib/Command/CirclesTest.php 1 patch
Spacing   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
 		// get the singleId of a Group
185 185
 		$federatedUser = $circlesManager->getFederatedUser('testGroup', Member::TYPE_GROUP);
186
-		echo 'singleId: ' . $federatedUser->getSingleId() . "\n";
186
+		echo 'singleId: '.$federatedUser->getSingleId()."\n";
187 187
 
188 188
 		//		$federatedUser->getMemberships();
189 189
 
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
 
224 224
 
225 225
 		$members = array_map(
226
-			function (Member $member): string {
227
-				return $member->getUserId() . ' ' . $member->getSingleId() . '   - ' . $member->getUserType();
226
+			function(Member $member): string {
227
+				return $member->getUserId().' '.$member->getSingleId().'   - '.$member->getUserType();
228 228
 			}, $circle->getInheritedMembers()
229 229
 		);
230 230
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 			} catch (Exception $e) {
311 311
 				if ($this->pOn) {
312 312
 					$message = ($e->getMessage() !== '') ? $e->getMessage() : get_class($e);
313
-					$this->output->writeln('<error>' . $message . '</error>');
313
+					$this->output->writeln('<error>'.$message.'</error>');
314 314
 				} else {
315 315
 					throw $e;
316 316
 				}
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 	 */
395 395
 	private function loadConfiguration() {
396 396
 		$this->p('Loading configuration');
397
-		$configuration = file_get_contents(__DIR__ . '/../../testConfiguration.json');
397
+		$configuration = file_get_contents(__DIR__.'/../../testConfiguration.json');
398 398
 		$this->config = json_decode($configuration, true);
399 399
 		$this->r(true, 'testConfiguration.json');
400 400
 
@@ -427,22 +427,22 @@  discard block
 block discarded – undo
427 427
 		$this->r();
428 428
 
429 429
 		foreach ($this->getInstances() as $instance) {
430
-			$this->p('Creating users on ' . $instance);
430
+			$this->p('Creating users on '.$instance);
431 431
 			foreach ($this->getConfigArray($instance, 'users') as $userId) {
432 432
 				$this->pm($userId);
433 433
 				$this->occ(
434
-					$instance, 'user:add --password-from-env ' . $userId, false, false,
434
+					$instance, 'user:add --password-from-env '.$userId, false, false,
435 435
 					['OC_PASS' => 'testtest']
436 436
 				);
437 437
 			}
438 438
 			$this->r();
439 439
 
440 440
 			foreach ($this->getConfigArray($instance, 'groups') as $groupId => $users) {
441
-				$this->p('Creating group <info>' . $groupId . '</info> on <info>' . $instance . '</info>');
442
-				$this->occ($instance, 'group:add ' . $groupId, false, false);
441
+				$this->p('Creating group <info>'.$groupId.'</info> on <info>'.$instance.'</info>');
442
+				$this->occ($instance, 'group:add '.$groupId, false, false);
443 443
 				foreach ($users as $userId) {
444 444
 					$this->pm($userId);
445
-					$this->occ($instance, 'group:adduser ' . $groupId . ' ' . $userId, true, false);
445
+					$this->occ($instance, 'group:adduser '.$groupId.' '.$userId, true, false);
446 446
 				}
447 447
 				$this->r();
448 448
 			}
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 		foreach ($this->getInstances(true) as $instance) {
477 477
 			$this->pm($instance);
478 478
 			foreach ($this->getConfigArray($instance, 'config') as $k => $v) {
479
-				$this->occ($instance, 'config:app:set --value ' . $v . ' circles ' . $k, true, false);
479
+				$this->occ($instance, 'config:app:set --value '.$v.' circles '.$k, true, false);
480 480
 			}
481 481
 		}
482 482
 		$this->r();
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 	 */
490 490
 	private function confirmVersion() {
491 491
 		$version = $this->configService->getAppValue('installed_version');
492
-		$this->p('Confirming version <info>' . $version . '</info>');
492
+		$this->p('Confirming version <info>'.$version.'</info>');
493 493
 		foreach ($this->getInstances(false) as $instance) {
494 494
 			$this->pm($instance);
495 495
 			$capabilities = $this->occ($instance, 'circles:check --capabilities');
@@ -540,12 +540,12 @@  discard block
 block discarded – undo
540 540
 	 */
541 541
 	private function statusFreshInstances() {
542 542
 		foreach ($this->getInstances() as $instanceId) {
543
-			$this->p('Circles on ' . $instanceId);
543
+			$this->p('Circles on '.$instanceId);
544 544
 			$result = $this->occ($instanceId, 'circles:manage:list --all');
545 545
 			$expectedSize = sizeof($this->getConfigArray($instanceId, 'groups'))
546 546
 							+ sizeof($this->getConfigArray($instanceId, 'users'))
547 547
 							+ 1;
548
-			$this->r((sizeof($result) === $expectedSize), ((string)sizeof($result)) . ' circles');
548
+			$this->r((sizeof($result) === $expectedSize), ((string)sizeof($result)).' circles');
549 549
 
550 550
 			$membersList = $groupsList = [];
551 551
 			foreach ($result as $item) {
@@ -564,12 +564,12 @@  discard block
 block discarded – undo
564 564
 			$instance = $this->getConfig($instanceId, 'config.frontal_cloud_id');
565 565
 
566 566
 			foreach ($this->getConfigArray($instanceId, 'users') as $userId) {
567
-				$this->p('Checking Single Circle for <comment>' . $userId . '@' . $instance . '</comment>');
567
+				$this->p('Checking Single Circle for <comment>'.$userId.'@'.$instance.'</comment>');
568 568
 				$circle = $this->getSingleCircleForMember($membersList, $userId, $instance);
569 569
 
570 570
 				$compareToOwnerBasedOn = new Circle();
571 571
 				$compareToOwnerBasedOn->setConfig(Circle::CFG_SINGLE)
572
-					->setName('user:' . $userId . ':{CIRCLEID}')
572
+					->setName('user:'.$userId.':{CIRCLEID}')
573 573
 					->setDisplayName($userId);
574 574
 
575 575
 				$compareToOwner = new Member();
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 				$compareTo = new Circle();
588 588
 				$compareTo->setOwner($compareToOwner)
589 589
 					->setConfig(Circle::CFG_SINGLE)
590
-					->setName('user:' . $userId . ':{CIRCLEID}')
590
+					->setName('user:'.$userId.':{CIRCLEID}')
591 591
 					->setDisplayName($userId);
592 592
 
593 593
 				$this->confirmCircleData($circle, $compareTo);
@@ -624,8 +624,8 @@  discard block
 block discarded – undo
624 624
 			$this->r(true, $circle->getSingleId());
625 625
 
626 626
 			foreach ($this->getConfigArray($instanceId, 'groups') as $groupId => $members) {
627
-				$this->p('Checking Circle for <comment>' . $groupId . '@' . $instance . '</comment>');
628
-				$circle = $this->getCircleFromList($groupsList, 'group:' . $groupId);
627
+				$this->p('Checking Circle for <comment>'.$groupId.'@'.$instance.'</comment>');
628
+				$circle = $this->getCircleFromList($groupsList, 'group:'.$groupId);
629 629
 
630 630
 				$appCircle = $this->getSingleCircleForMember($membersList, 'circles', $instance);
631 631
 				$appOwner = $appCircle->getOwner();
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 				$compareTo = new Circle();
650 650
 				$compareTo->setOwner($compareToOwner)
651 651
 					->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN)
652
-					->setName('group:' . $groupId)
652
+					->setName('group:'.$groupId)
653 653
 					->setDisplayName($groupId);
654 654
 
655 655
 				$this->confirmCircleData($circle, $compareTo);
@@ -666,12 +666,12 @@  discard block
 block discarded – undo
666 666
 	 */
667 667
 	private function createRemoteLink() {
668 668
 		foreach ($this->getInstances() as $instanceId) {
669
-			$this->p('Init remote link from ' . $instanceId);
669
+			$this->p('Init remote link from '.$instanceId);
670 670
 			$links = $this->getConfigArray($instanceId, 'remote');
671 671
 			foreach ($links as $link => $type) {
672 672
 				$remote = $this->getConfig($link, 'config.frontal_cloud_id');
673
-				$this->pm($remote . '(' . $type . ')');
674
-				$this->occ($instanceId, 'circles:remote ' . $remote . ' --type ' . $type . ' --yes');
673
+				$this->pm($remote.'('.$type.')');
674
+				$this->occ($instanceId, 'circles:remote '.$remote.' --type '.$type.' --yes');
675 675
 			}
676 676
 			$this->r();
677 677
 		}
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 	private function buildingLocalDatabase() {
686 686
 		$this->circles = $this->federatedUsers = [];
687 687
 		foreach ($this->getInstances() as $instanceId) {
688
-			$this->p('Retrieving Circles from ' . $instanceId);
688
+			$this->p('Retrieving Circles from '.$instanceId);
689 689
 			$circles = $this->occ($instanceId, 'circles:manage:list --all');
690 690
 			foreach ($circles as $item) {
691 691
 				/** @var Circle $circle */
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
 		$name = self::$TEST_CIRCLES[0];
721 721
 		$owner = $this->getInstanceUsers($localInstanceId)[1];
722 722
 		$dataCreatedCircle001 =
723
-			$this->occ($localInstanceId, 'circles:manage:create --type user ' . $owner . ' ' . $name);
723
+			$this->occ($localInstanceId, 'circles:manage:create --type user '.$owner.' '.$name);
724 724
 		/** @var Circle $createdCircle */
725 725
 		$createdCircle = $this->deserialize($dataCreatedCircle001, Circle::class);
726 726
 		$this->circles[$localInstanceId][$createdCircle->getName()] = $createdCircle;
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 
753 753
 
754 754
 		$this->p('Comparing local stored data');
755
-		$dataCircle = $this->occ($localInstanceId, 'circle:manage:details ' . $createdCircle->getSingleId());
755
+		$dataCircle = $this->occ($localInstanceId, 'circle:manage:details '.$createdCircle->getSingleId());
756 756
 
757 757
 		/** @var Circle $tmpCircle */
758 758
 		$tmpCircle = $this->deserialize($dataCircle, Circle::class);
@@ -761,9 +761,9 @@  discard block
 block discarded – undo
761 761
 
762 762
 		$links = $this->getConfigArray('global-scale-1', 'remote');
763 763
 		foreach ($this->getInstances(false) as $instanceId) {
764
-			$this->p('Comparing data stored on ' . $instanceId);
764
+			$this->p('Comparing data stored on '.$instanceId);
765 765
 			$dataCircle =
766
-				$this->occ($instanceId, 'circle:manage:details ' . $createdCircle->getSingleId(), false);
766
+				$this->occ($instanceId, 'circle:manage:details '.$createdCircle->getSingleId(), false);
767 767
 
768 768
 			if ($instanceId === $localInstanceId || $links[$instanceId] === 'GlobalScale') {
769 769
 				/** @var Circle $tmpCircle */
@@ -816,11 +816,11 @@  discard block
 block discarded – undo
816 816
 		$name = self::$TEST_CIRCLES[0];
817 817
 		$circle = $this->getCircleByName($localInstanceId, $name);
818 818
 		$userId = $this->getInstanceUsers($localInstanceId)[6];
819
-		$userCircle = $this->getCircleByName($localInstanceId, 'user:' . $userId);
819
+		$userCircle = $this->getCircleByName($localInstanceId, 'user:'.$userId);
820 820
 		$user = $userCircle->getOwner();
821 821
 		$dataAddedMember =
822 822
 			$this->occ(
823
-				$localInstanceId, 'circles:members:add ' . $circle->getSingleId() . ' ' . $user->getSingleId()
823
+				$localInstanceId, 'circles:members:add '.$circle->getSingleId().' '.$user->getSingleId()
824 824
 			);
825 825
 		/** @var Member $addedMember */
826 826
 		$addedMember = $this->deserialize($dataAddedMember, Member::class);
@@ -840,11 +840,11 @@  discard block
 block discarded – undo
840 840
 
841 841
 		$circle = $this->getCircleByName($localInstanceId, $circleName);
842 842
 		$userId = $this->getInstanceUsers($localInstanceId)[6];
843
-		$userCircle = $this->getCircleByName($localInstanceId, 'user:' . $userId);
843
+		$userCircle = $this->getCircleByName($localInstanceId, 'user:'.$userId);
844 844
 		$user = $userCircle->getOwner();
845 845
 		$dataAddedMember =
846 846
 			$this->occ(
847
-				$localInstanceId, 'circles:members:add ' . $circle->getSingleId() . ' ' . $user->getSingleId()
847
+				$localInstanceId, 'circles:members:add '.$circle->getSingleId().' '.$user->getSingleId()
848 848
 			);
849 849
 		/** @var Member $addedMember */
850 850
 		$addedMember = $this->deserialize($dataAddedMember, Member::class);
@@ -938,19 +938,19 @@  discard block
 block discarded – undo
938 938
 			];
939 939
 		}
940 940
 
941
-		$this->compare($compareTo->getSingleId(), $circle->getSingleId(), $prefix . '.id', $params);
942
-		$this->compare($compareTo->getName(), $circle->getName(), $prefix . '.name', $params);
941
+		$this->compare($compareTo->getSingleId(), $circle->getSingleId(), $prefix.'.id', $params);
942
+		$this->compare($compareTo->getName(), $circle->getName(), $prefix.'.name', $params);
943 943
 		$this->compare(
944
-			$compareTo->getDisplayName(), $circle->getDisplayName(), $prefix . '.displayName', $params
944
+			$compareTo->getDisplayName(), $circle->getDisplayName(), $prefix.'.displayName', $params
945 945
 		);
946
-		$this->compareInt($compareTo->getConfig(), $circle->getConfig(), $prefix . '.config', true);
947
-		$this->compareInt($compareTo->getSource(), $circle->getSource(), $prefix . '.source');
946
+		$this->compareInt($compareTo->getConfig(), $circle->getConfig(), $prefix.'.config', true);
947
+		$this->compareInt($compareTo->getSource(), $circle->getSource(), $prefix.'.source');
948 948
 
949 949
 		if ($compareTo->hasOwner()) {
950 950
 			$compareToOwner = $compareTo->getOwner();
951 951
 			$owner = $circle->getOwner();
952 952
 			if ($owner->getCircleId() !== $circle->getSingleId()) {
953
-				throw new Exception($prefix . '.owner.circleId is different than ' . $prefix . '.id');
953
+				throw new Exception($prefix.'.owner.circleId is different than '.$prefix.'.id');
954 954
 			}
955 955
 			$this->confirmMemberData($owner, $compareToOwner, 'owner', false, $params);
956 956
 		}
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
 			}
962 962
 			$initiator = $circle->getInitiator();
963 963
 			if ($initiator->getCircleId() !== $circle->getSingleId()) {
964
-				throw new Exception($prefix . '.initiator.circleId is different than ' . $prefix . '.id');
964
+				throw new Exception($prefix.'.initiator.circleId is different than '.$prefix.'.id');
965 965
 			}
966 966
 			$this->confirmMemberData($initiator, $compareToInitiator, 'owner', false, $params);
967 967
 		}
@@ -987,27 +987,27 @@  discard block
 block discarded – undo
987 987
 		bool $versa = false,
988 988
 		array $params = [],
989 989
 	) {
990
-		$this->compare($compareTo->getId(), $member->getId(), $prefix . '.id', $params);
991
-		$this->compare($compareTo->getCircleId(), $member->getCircleId(), $prefix . '.circleId', $params);
992
-		$this->compare($compareTo->getSingleId(), $member->getSingleId(), $prefix . '.singleId', $params);
993
-		$this->compare($compareTo->getUserId(), $member->getUserId(), $prefix . '.userId', $params);
990
+		$this->compare($compareTo->getId(), $member->getId(), $prefix.'.id', $params);
991
+		$this->compare($compareTo->getCircleId(), $member->getCircleId(), $prefix.'.circleId', $params);
992
+		$this->compare($compareTo->getSingleId(), $member->getSingleId(), $prefix.'.singleId', $params);
993
+		$this->compare($compareTo->getUserId(), $member->getUserId(), $prefix.'.userId', $params);
994 994
 		$this->compare(
995
-			$compareTo->getDisplayName(), $member->getDisplayName(), $prefix . '.displayName', $params
995
+			$compareTo->getDisplayName(), $member->getDisplayName(), $prefix.'.displayName', $params
996 996
 		);
997
-		$this->compareInt($compareTo->getUserType(), $member->getUserType(), $prefix . '.userType');
998
-		$this->compare($compareTo->getInstance(), $member->getInstance(), $prefix . '.instance', $params);
999
-		$this->compareInt($compareTo->getLevel(), $member->getLevel(), $prefix . '.level', true);
1000
-		$this->compare($compareTo->getStatus(), $member->getStatus(), $prefix . '.status', $params);
997
+		$this->compareInt($compareTo->getUserType(), $member->getUserType(), $prefix.'.userType');
998
+		$this->compare($compareTo->getInstance(), $member->getInstance(), $prefix.'.instance', $params);
999
+		$this->compareInt($compareTo->getLevel(), $member->getLevel(), $prefix.'.level', true);
1000
+		$this->compare($compareTo->getStatus(), $member->getStatus(), $prefix.'.status', $params);
1001 1001
 
1002 1002
 		if ($compareTo->hasBasedOn()) {
1003 1003
 			if (!$member->hasBasedOn()) {
1004
-				throw new Exception('empty ' . $prefix . '.basedOn');
1004
+				throw new Exception('empty '.$prefix.'.basedOn');
1005 1005
 			}
1006 1006
 			$basedOn = $member->getBasedOn();
1007 1007
 			$this->confirmCircleData(
1008 1008
 				$basedOn,
1009 1009
 				$compareTo->getBasedOn(),
1010
-				$prefix . '.basedOn',
1010
+				$prefix.'.basedOn',
1011 1011
 				false,
1012 1012
 				$params
1013 1013
 			);
@@ -1026,7 +1026,7 @@  discard block
 block discarded – undo
1026 1026
 	private function compare(string $expected, string $compare, string $def, array $params) {
1027 1027
 		if ($expected !== ''
1028 1028
 			&& $this->feedStringWithParams($expected, $params) !== $compare) {
1029
-			throw new Exception($def . ': ' . $compare . ' (' . $expected . ')');
1029
+			throw new Exception($def.': '.$compare.' ('.$expected.')');
1030 1030
 		}
1031 1031
 	}
1032 1032
 
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
 	private function compareInt(int $expected, int $compare, string $def, bool $force = false) {
1043 1043
 		if (($expected > 0 || ($force && $expected >= 0))
1044 1044
 			&& $expected !== $compare) {
1045
-			throw new Exception('wrong ' . $def . ': ' . ((string)$compare) . ' (' . ((string)$expected) . ')');
1045
+			throw new Exception('wrong '.$def.': '.((string)$compare).' ('.((string)$expected).')');
1046 1046
 		}
1047 1047
 	}
1048 1048
 
@@ -1078,7 +1078,7 @@  discard block
 block discarded – undo
1078 1078
 			}
1079 1079
 		}
1080 1080
 
1081
-		throw new CircleNotFoundException('cannot find ' . $userId . ' in the list of Single Team');
1081
+		throw new CircleNotFoundException('cannot find '.$userId.' in the list of Single Team');
1082 1082
 	}
1083 1083
 
1084 1084
 
@@ -1096,7 +1096,7 @@  discard block
 block discarded – undo
1096 1096
 		}
1097 1097
 
1098 1098
 		throw new CircleNotFoundException(
1099
-			'cannot extract \'' . $name . '\' from the list of generated Circles'
1099
+			'cannot extract \''.$name.'\' from the list of generated Circles'
1100 1100
 		);
1101 1101
 	}
1102 1102
 
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
 		}
1117 1117
 
1118 1118
 		throw new CircleNotFoundException(
1119
-			'cannot extract  \'' . $name . '\' from the list of provided Circles'
1119
+			'cannot extract  \''.$name.'\' from the list of provided Circles'
1120 1120
 		);
1121 1121
 	}
1122 1122
 
@@ -1161,7 +1161,7 @@  discard block
 block discarded – undo
1161 1161
 			}
1162 1162
 		}
1163 1163
 
1164
-		throw new ItemNotFoundException($instance . ' not found');
1164
+		throw new ItemNotFoundException($instance.' not found');
1165 1165
 	}
1166 1166
 
1167 1167
 
@@ -1196,7 +1196,7 @@  discard block
 block discarded – undo
1196 1196
 	): ?array {
1197 1197
 		$configInstance = $this->getConfigInstance($instance);
1198 1198
 		$path = $this->get('path', $configInstance);
1199
-		$occ = rtrim($path, '/') . '/occ';
1199
+		$occ = rtrim($path, '/').'/occ';
1200 1200
 
1201 1201
 		$command = array_merge([$occ], explode(' ', $cmd));
1202 1202
 		if ($jsonAsOutput) {
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
 		$process->run(null, $env);
1207 1207
 
1208 1208
 		if ($exceptionOnFail && !$process->isSuccessful()) {
1209
-			throw new Exception(implode(' ', $command) . ' failed');
1209
+			throw new Exception(implode(' ', $command).' failed');
1210 1210
 		}
1211 1211
 
1212 1212
 		$output = json_decode($process->getOutput(), true);
@@ -1229,7 +1229,7 @@  discard block
 block discarded – undo
1229 1229
 	 */
1230 1230
 	private function t(string $title): void {
1231 1231
 		$this->output->writeln('');
1232
-		$this->output->writeln('<comment>### ' . $title . '</comment>');
1232
+		$this->output->writeln('<comment>### '.$title.'</comment>');
1233 1233
 		$this->output->writeln('');
1234 1234
 	}
1235 1235
 
@@ -1238,14 +1238,14 @@  discard block
 block discarded – undo
1238 1238
 	 */
1239 1239
 	private function p(string $processing): void {
1240 1240
 		$this->pOn = true;
1241
-		$this->output->write('- ' . $processing . ': ');
1241
+		$this->output->write('- '.$processing.': ');
1242 1242
 	}
1243 1243
 
1244 1244
 	/**
1245 1245
 	 * @param string $more
1246 1246
 	 */
1247 1247
 	private function pm(string $more): void {
1248
-		$this->output->write($more . ' ');
1248
+		$this->output->write($more.' ');
1249 1249
 	}
1250 1250
 
1251 1251
 	/**
@@ -1255,9 +1255,9 @@  discard block
 block discarded – undo
1255 1255
 	private function r(bool $result = true, string $info = ''): void {
1256 1256
 		$this->pOn = false;
1257 1257
 		if ($result) {
1258
-			$this->output->writeln('<info>' . (($info !== '') ? $info : 'done') . '</info>');
1258
+			$this->output->writeln('<info>'.(($info !== '') ? $info : 'done').'</info>');
1259 1259
 		} else {
1260
-			$this->output->writeln('<error>' . (($info !== '') ? $info : 'done') . '</error>');
1260
+			$this->output->writeln('<error>'.(($info !== '') ? $info : 'done').'</error>');
1261 1261
 		}
1262 1262
 	}
1263 1263
 
@@ -1279,16 +1279,16 @@  discard block
 block discarded – undo
1279 1279
 		$dataAddedMember =
1280 1280
 			$this->occ(
1281 1281
 				$instanceId,
1282
-				'circles:members:add ' . $circle->getSingleId() . ' ' . $userId . ' --type ' . $type
1282
+				'circles:members:add '.$circle->getSingleId().' '.$userId.' --type '.$type
1283 1283
 			);
1284 1284
 		/** @var Member $addedMember */
1285 1285
 		$addedMember = $this->deserialize($dataAddedMember, Member::class);
1286 1286
 
1287 1287
 
1288
-		echo 'ADDEDMEMBER: ' . json_encode($addedMember, JSON_PRETTY_PRINT) . "\n";
1288
+		echo 'ADDEDMEMBER: '.json_encode($addedMember, JSON_PRETTY_PRINT)."\n";
1289 1289
 
1290 1290
 		$federatedUser = $this->federatedUsers[$instanceId][$userId];
1291
-		echo 'FEDERATEDUER: ' . json_encode($federatedUser, JSON_PRETTY_PRINT) . "\n";
1291
+		echo 'FEDERATEDUER: '.json_encode($federatedUser, JSON_PRETTY_PRINT)."\n";
1292 1292
 
1293 1293
 		return $addedMember;
1294 1294
 	}
Please login to merge, or discard this patch.