Completed
Pull Request — master (#1160)
by Joas
21s
created
lib/Service/MigrationService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 		$done = [];
240 240
 		foreach ($circles as $circle) {
241 241
 			$this->outputService->output(
242
-				'Caching memberships for Members of \'' . $circle->getDisplayName() . '\'',
242
+				'Caching memberships for Members of \''.$circle->getDisplayName().'\'',
243 243
 				true
244 244
 			);
245 245
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 				try {
288 288
 					$data = new SimpleDataStore($row);
289 289
 					$this->outputService->output(
290
-						'Migrating Circle \'' . $data->g('name') . '\' (' . $data->g('unique_id') . ')',
290
+						'Migrating Circle \''.$data->g('name').'\' ('.$data->g('unique_id').')',
291 291
 						true
292 292
 					);
293 293
 
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 				try {
392 392
 					$data = new SimpleDataStore($row);
393 393
 					$this->outputService->output(
394
-						'Migrating Member \'' . $data->g('user_id') . '\' from \'' . $data->g('circle_id')
394
+						'Migrating Member \''.$data->g('user_id').'\' from \''.$data->g('circle_id')
395 395
 						. '\'',
396 396
 						true
397 397
 					);
@@ -506,8 +506,8 @@  discard block
 block discarded – undo
506 506
 					$federatedUser =
507 507
 						$this->federatedUserService->getLocalFederatedUser($data->g('share_with'));
508 508
 					$this->outputService->output(
509
-						'Migrating child share #' . $data->gInt('id') . ' owner: ' . $data->g('share_with')
510
-						. ' -> ' . $federatedUser->getSingleId(),
509
+						'Migrating child share #'.$data->gInt('id').' owner: '.$data->g('share_with')
510
+						. ' -> '.$federatedUser->getSingleId(),
511 511
 						true
512 512
 					);
513 513
 
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
 			$addressBook =
579 579
 				$this->contactService->getAddressBoxById($cm, $this->get('addressbook-key', $entry));
580 580
 
581
-			$member->setUserId($userId . '/' . $addressBook->getUri() . '/' . $contactId);
581
+			$member->setUserId($userId.'/'.$addressBook->getUri().'/'.$contactId);
582 582
 		}
583 583
 	}
584 584
 
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 				try {
614 614
 					$data = new SimpleDataStore($row);
615 615
 					$this->outputService->output(
616
-						'Migrating ShareToken \'' . $data->g('token') . '\' for \'' . $data->g('user_id')
616
+						'Migrating ShareToken \''.$data->g('token').'\' for \''.$data->g('user_id')
617 617
 						. '\'',
618 618
 						true
619 619
 					);
Please login to merge, or discard this patch.
lib/Service/MembershipService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 	 */
251 251
 	private function getChildrenMembers(string $id, array &$knownIds = []): array {
252 252
 		$singleIds = array_map(
253
-			function (Member $item): string {
253
+			function(Member $item): string {
254 254
 				return $item->getSingleId();
255 255
 			}, $this->memberRequest->getMembers($id)
256 256
 		);
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 	 */
275 275
 	private function getChildrenMemberships(string $id, array &$knownIds = []): array {
276 276
 		$singleIds = array_map(
277
-			function (Membership $item): string {
277
+			function(Membership $item): string {
278 278
 				return $item->getSingleId();
279 279
 			}, $this->membershipRequest->getInherited($id)
280 280
 		);
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 	 */
321 321
 	private function removeDeprecatedMemberships(array $memberships, array $known): array {
322 322
 		$circleIds = array_map(
323
-			function (Membership $membership): string {
323
+			function(Membership $membership): string {
324 324
 				return $membership->getCircleId();
325 325
 			}, $memberships
326 326
 		);
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.
lib/Command/CirclesMaintenance.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 				'<error>WARNING! You are about to delete all data related to the Circles App!</error>'
118 118
 			);
119 119
 			$question = new ConfirmationQuestion(
120
-				'<comment>Do you really want to ' . $action . ' Circles ?</comment> (y/N) ', false,
120
+				'<comment>Do you really want to '.$action.' Circles ?</comment> (y/N) ', false,
121 121
 				'/^(y|Y)/i'
122 122
 			);
123 123
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 			$output->writeln('<error>WARNING! This operation is not reversible.</error>');
133 133
 
134 134
 			$question = new Question(
135
-				'<comment>Please confirm this destructive operation by typing \'' . $action
135
+				'<comment>Please confirm this destructive operation by typing \''.$action
136 136
 				. '\'</comment>: ', ''
137 137
 			);
138 138
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 				$this->coreRequestBuilder->uninstall();
150 150
 			}
151 151
 
152
-			$output->writeln('<info>' . $action . ' done</info>');
152
+			$output->writeln('<info>'.$action.' done</info>');
153 153
 
154 154
 			return 0;
155 155
 		}
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
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 		if ($check) {
479 479
 			$user = $this->userManager->get($userId);
480 480
 			if ($user === null) {
481
-				throw new FederatedUserNotFoundException('user ' . $userId . ' not found');
481
+				throw new FederatedUserNotFoundException('user '.$userId.' not found');
482 482
 			}
483 483
 			$userId = $user->getUID();
484 484
 			$displayName = $user->getDisplayName();
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
 			$prefix = ($federatedUser->getUserType() === Member::TYPE_APP) ? 'app'
954 954
 				: Member::$TYPE[$federatedUser->getUserType()];
955 955
 
956
-			$circle->setName($prefix . ':' . $federatedUser->getUserId() . ':' . $id)
956
+			$circle->setName($prefix.':'.$federatedUser->getUserId().':'.$id)
957 957
 				   ->setDisplayName($federatedUser->getDisplayName())
958 958
 				   ->setSingleId($id)
959 959
 				   ->setSource($source);
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
 		$owner = $this->getCurrentApp();
1158 1158
 
1159 1159
 		$circle = new Circle();
1160
-		$circle->setName('group:' . $groupId)
1160
+		$circle->setName('group:'.$groupId)
1161 1161
 			   ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN)
1162 1162
 			   ->setSingleId($this->token(ManagedModel::ID_LENGTH))
1163 1163
 			   ->setSource(Member::TYPE_GROUP);
@@ -1223,8 +1223,8 @@  discard block
 block discarded – undo
1223 1223
 	 * @return string
1224 1224
 	 */
1225 1225
 	private function generateCacheKey(FederatedUser $federatedUser): string {
1226
-		return $federatedUser->getInstance() . '#'
1227
-			   . $federatedUser->getUserType() . '#'
1226
+		return $federatedUser->getInstance().'#'
1227
+			   . $federatedUser->getUserType().'#'
1228 1228
 			   . $federatedUser->getUserId();
1229 1229
 	}
1230 1230
 }
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 			return $value;
236 236
 		}
237 237
 
238
-		if (($value = $this->config->getSystemValue(Application::APP_ID . '.' . $key, '')) !== '') {
238
+		if (($value = $this->config->getSystemValue(Application::APP_ID.'.'.$key, '')) !== '') {
239 239
 			return $value;
240 240
 		}
241 241
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 	 */
474 474
 	public function getTrustedDomains(): array {
475 475
 		return array_map(
476
-			function (string $address) {
476
+			function(string $address) {
477 477
 				return strtolower($address);
478 478
 			}, $this->config->getSystemValue('trusted_domains', [])
479 479
 		);
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 		}
510 510
 
511 511
 		if (array_key_exists('port', $loopback)) {
512
-			$loopbackCloudId = $loopback['host'] . ':' . $loopback['port'];
512
+			$loopbackCloudId = $loopback['host'].':'.$loopback['port'];
513 513
 		} else {
514 514
 			$loopbackCloudId = $loopback['host'];
515 515
 		}
@@ -548,13 +548,13 @@  discard block
 block discarded – undo
548 548
 			$path = $this->getAppValue(self::LOOPBACK_CLOUD_PATH);
549 549
 		}
550 550
 
551
-		$base = $scheme . '://' . $instance . $path;
551
+		$base = $scheme.'://'.$instance.$path;
552 552
 
553 553
 		if ($route === '') {
554 554
 			return $base;
555 555
 		}
556 556
 
557
-		return rtrim($base, '/') . $this->linkToRoute($route, $args);
557
+		return rtrim($base, '/').$this->linkToRoute($route, $args);
558 558
 	}
559 559
 
560 560
 
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
 	): string {
660 660
 		$name = ($displayName) ? $federatedUser->getDisplayName() : $federatedUser->getUserId();
661 661
 		if ($federatedUser->getUserType() === Member::TYPE_MAIL) {
662
-			return $name . ' ' . $this->displayInstance(
662
+			return $name.' '.$this->displayInstance(
663 663
 					$federatedUser->getInstance(),
664 664
 					self::DISPLAY_PARENTHESIS
665 665
 				);
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
 			return $name;
670 670
 		}
671 671
 
672
-		return $name . $this->displayInstance($federatedUser->getInstance(), self::DISPLAY_AT);
672
+		return $name.$this->displayInstance($federatedUser->getInstance(), self::DISPLAY_AT);
673 673
 	}
674 674
 
675 675
 	/**
@@ -685,9 +685,9 @@  discard block
 block discarded – undo
685 685
 
686 686
 		switch ($type) {
687 687
 			case self::DISPLAY_AT:
688
-				return '@' . $instance;
688
+				return '@'.$instance;
689 689
 			case self::DISPLAY_PARENTHESIS:
690
-				return '(' . $instance . ')';
690
+				return '('.$instance.')';
691 691
 		}
692 692
 
693 693
 		return $instance;
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 require_once __DIR__.'/../../../lib/base.php';
6 6
 require_once __DIR__.'/../vendor/autoload.php';
7 7
 
8
-\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/unit/', true);
8
+\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT.'/tests/unit/', true);
9 9
 
10 10
 \OC_App::loadApp('circles');
11 11
 
Please login to merge, or discard this patch.
lib/Command/CirclesSetting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 		} catch (FederatedItemException $e) {
126 126
 			if ($input->getOption('status-code')) {
127 127
 				throw new FederatedItemException(
128
-					' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage()
128
+					' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage()
129 129
 				);
130 130
 			}
131 131
 
Please login to merge, or discard this patch.
lib/Command/CirclesCheck.php 1 patch
Spacing   +29 added lines, -29 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
 					'Now, 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
 				}
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
 		$this->configService->setAppValue(ConfigService::INTERNAL_CLOUD_PATH, $path);
600 600
 
601 601
 		$output->writeln(
602
-			'- Address <info>' . $internal . '</info> is now used as <info>internal</info>'
602
+			'- Address <info>'.$internal.'</info> is now used as <info>internal</info>'
603 603
 		);
604 604
 	}
605 605
 
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 				continue;
653 653
 			}
654 654
 
655
-			$frontal = rtrim($scheme . '://' . $cloudId . $path, '/');
655
+			$frontal = rtrim($scheme.'://'.$cloudId.$path, '/');
656 656
 			break;
657 657
 		}
658 658
 
@@ -666,13 +666,13 @@  discard block
 block discarded – undo
666 666
 				'You will need to run this <info>curl</info> command from a remote terminal and paste its result: '
667 667
 			);
668 668
 			$output->writeln(
669
-				'     curl ' . $frontal . '/.well-known/webfinger?resource=http://nextcloud.com/'
669
+				'     curl '.$frontal.'/.well-known/webfinger?resource=http://nextcloud.com/'
670 670
 			);
671 671
 
672 672
 			$question = new Question('result: ', '');
673 673
 			$pasteWebfinger = $helper->ask($input, $output, $question);
674 674
 
675
-			echo '__ ' . $pasteWebfinger;
675
+			echo '__ '.$pasteWebfinger;
676 676
 
677 677
 			$output->writeln('TESTING !!');
678 678
 			$output->writeln('TESTING !!');
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 			$request->setDataSerialize(new SimpleDataStore(['empty' => 1]));
800 800
 		}
801 801
 
802
-		$output->write('- ' . $type . ' request on ' . $request->getCompleteUrl() . ': ');
802
+		$output->write('- '.$type.' request on '.$request->getCompleteUrl().': ');
803 803
 
804 804
 		try {
805 805
 			$this->doRequest($request);
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 				$color = 'info';
811 811
 			}
812 812
 
813
-			$output->writeln('<' . $color . '>' . $result->getStatusCode() . '</' . $color . '>');
813
+			$output->writeln('<'.$color.'>'.$result->getStatusCode().'</'.$color.'>');
814 814
 			if ($result->getStatusCode() === 200) {
815 815
 				return true;
816 816
 			}
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
 
835 835
 		$output->writeln('');
836 836
 		$output->writeln(
837
-			'The address <info>' . $address . '</info> seems to reach your local Nextcloud.'
837
+			'The address <info>'.$address.'</info> seems to reach your local Nextcloud.'
838 838
 		);
839 839
 
840 840
 		$helper = $this->getHelper('question');
@@ -851,8 +851,8 @@  discard block
 block discarded – undo
851 851
 
852 852
 		$this->configService->setAppValue(ConfigService::FORCE_NC_BASE, $address);
853 853
 		$output->writeln(
854
-			'New configuration <info>' . Application::APP_ID . '.' . ConfigService::FORCE_NC_BASE . '=\''
855
-			. $address . '\'</info> stored in database'
854
+			'New configuration <info>'.Application::APP_ID.'.'.ConfigService::FORCE_NC_BASE.'=\''
855
+			. $address.'\'</info> stored in database'
856 856
 		);
857 857
 	}
858 858
 
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
 		$path = rtrim($path, '/');
881 881
 
882 882
 		if (!is_null($cloudIdPort)) {
883
-			$cloudId = $cloudId . ':' . $cloudIdPort;
883
+			$cloudId = $cloudId.':'.$cloudIdPort;
884 884
 		}
885 885
 
886 886
 		return [$scheme, $cloudId, $path];
Please login to merge, or discard this patch.