Completed
Push — master ( bf9ee0...b87cc9 )
by Maxence
02:25
created
lib/Command/CirclesCheck.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 			throw new Exception('Please specify a --type for the test');
174 174
 		}
175 175
 		if ($test !== '' && !in_array($type, self::$checks)) {
176
-			throw new Exception('Unknown type: ' . implode(', ', self::$checks));
176
+			throw new Exception('Unknown type: '.implode(', ', self::$checks));
177 177
 		}
178 178
 
179 179
 //		$this->configService->setAppValue(ConfigService::TEST_NC_BASE, $test);
@@ -275,14 +275,14 @@  discard block
 block discarded – undo
275 275
 		}
276 276
 
277 277
 		$output->writeln('');
278
-		$output->writeln('* testing current address: ' . $test);
278
+		$output->writeln('* testing current address: '.$test);
279 279
 
280 280
 		try {
281 281
 			$this->setupLoopback($input, $output, $test);
282 282
 			$output->writeln('* <info>Loopback</info> address looks good');
283 283
 			$output->writeln('saving');
284 284
 		} catch (Exception $e) {
285
-			$output->writeln('<error>' . $e->getMessage() . '</error>');
285
+			$output->writeln('<error>'.$e->getMessage().'</error>');
286 286
 		}
287 287
 
288 288
 		$output->writeln('- You do not have a valid <info>loopback</info> address setup right now.');
@@ -306,8 +306,8 @@  discard block
 block discarded – undo
306 306
 				continue;
307 307
 			}
308 308
 
309
-			$loopback = $scheme . '://' . $cloudId;
310
-			$output->write('* testing address: ' . $loopback . ' ');
309
+			$loopback = $scheme.'://'.$cloudId;
310
+			$output->write('* testing address: '.$loopback.' ');
311 311
 
312 312
 			if ($this->testLoopback($input, $output, $loopback)) {
313 313
 				$output->writeln('<info>ok</info>');
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 				$this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_SCHEME, $scheme);
316 316
 				$this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_ID, $cloudId);
317 317
 				$output->writeln(
318
-					'- Address <info>' . $loopback . '</info> is now used as <info>loopback</info>'
318
+					'- Address <info>'.$loopback.'</info> is now used as <info>loopback</info>'
319 319
 				);
320 320
 
321 321
 				return;
@@ -387,9 +387,9 @@  discard block
 block discarded – undo
387 387
 		$test = new FederatedEvent(LoopbackTest::class);
388 388
 		$this->federatedEventService->newEvent($test);
389 389
 
390
-		$output->writeln('<info>' . $test->getWrapperToken() . '</info>');
390
+		$output->writeln('<info>'.$test->getWrapperToken().'</info>');
391 391
 
392
-		$output->writeln('- Waiting for async process to finish (' . $this->delay . 's)');
392
+		$output->writeln('- Waiting for async process to finish ('.$this->delay.'s)');
393 393
 		sleep($this->delay);
394 394
 
395 395
 		$output->write('- Checking status on FederatedEvent ');
@@ -402,18 +402,18 @@  discard block
 block discarded – undo
402 402
 
403 403
 		$checkVerify = $wrapper->getEvent()->getData()->gInt('verify');
404 404
 		if ($checkVerify === LoopbackTest::VERIFY) {
405
-			$output->write('<info>verify=' . $checkVerify . '</info> ');
405
+			$output->write('<info>verify='.$checkVerify.'</info> ');
406 406
 		} else {
407
-			$output->writeln('<error>verify=' . $checkVerify . '</error>');
407
+			$output->writeln('<error>verify='.$checkVerify.'</error>');
408 408
 
409 409
 			return false;
410 410
 		}
411 411
 
412 412
 		$checkManage = $wrapper->getResult()->gInt('manage');
413 413
 		if ($checkManage === LoopbackTest::MANAGE) {
414
-			$output->write('<info>manage=' . $checkManage . '</info> ');
414
+			$output->write('<info>manage='.$checkManage.'</info> ');
415 415
 		} else {
416
-			$output->writeln('<error>manage=' . $checkManage . '</error>');
416
+			$output->writeln('<error>manage='.$checkManage.'</error>');
417 417
 
418 418
 			return false;
419 419
 		}
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
 				continue;
491 491
 			}
492 492
 
493
-			$frontal = $scheme . '://' . $cloudId;
493
+			$frontal = $scheme.'://'.$cloudId;
494 494
 			break;
495 495
 		}
496 496
 
@@ -504,13 +504,13 @@  discard block
 block discarded – undo
504 504
 				'You will need to run this <info>curl</info> command from a remote terminal and paste its result: '
505 505
 			);
506 506
 			$output->writeln(
507
-				'     curl ' . $frontal . '/.well-known/webfinger?resource=http://nextcloud.com/'
507
+				'     curl '.$frontal.'/.well-known/webfinger?resource=http://nextcloud.com/'
508 508
 			);
509 509
 
510 510
 			$question = new Question('result: ', '');
511 511
 			$pasteWebfinger = $helper->ask($input, $output, $question);
512 512
 
513
-			echo '__ ' . $pasteWebfinger;
513
+			echo '__ '.$pasteWebfinger;
514 514
 
515 515
 			$output->writeln('TESTING !!');
516 516
 			$output->writeln('TESTING !!');
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
 		$this->configService->configureLoopbackRequest($request, $route, $args);
635 635
 		$request->setFollowLocation(false);
636 636
 
637
-		$output->write('- ' . $type . ' request on ' . $request->getCompleteUrl() . ': ');
637
+		$output->write('- '.$type.' request on '.$request->getCompleteUrl().': ');
638 638
 		$this->doRequest($request);
639 639
 
640 640
 		$color = 'error';
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 			$color = 'info';
644 644
 		}
645 645
 
646
-		$output->writeln('<' . $color . '>' . $result->getStatusCode() . '</' . $color . '>');
646
+		$output->writeln('<'.$color.'>'.$result->getStatusCode().'</'.$color.'>');
647 647
 
648 648
 		if ($result->getStatusCode() === 200) {
649 649
 			return true;
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 
666 666
 		$output->writeln('');
667 667
 		$output->writeln(
668
-			'The address <info>' . $address . '</info> seems to reach your local Nextcloud.'
668
+			'The address <info>'.$address.'</info> seems to reach your local Nextcloud.'
669 669
 		);
670 670
 
671 671
 		$helper = $this->getHelper('question');
@@ -682,8 +682,8 @@  discard block
 block discarded – undo
682 682
 
683 683
 		$this->configService->setAppValue(ConfigService::FORCE_NC_BASE, $address);
684 684
 		$output->writeln(
685
-			'New configuration <info>' . Application::APP_ID . '.' . ConfigService::FORCE_NC_BASE . '=\''
686
-			. $address . '\'</info> stored in database'
685
+			'New configuration <info>'.Application::APP_ID.'.'.ConfigService::FORCE_NC_BASE.'=\''
686
+			. $address.'\'</info> stored in database'
687 687
 		);
688 688
 	}
689 689
 
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 		}
705 705
 
706 706
 		if (!is_null($cloudIdPort)) {
707
-			$cloudId = $cloudId . ':' . $cloudIdPort;
707
+			$cloudId = $cloudId.':'.$cloudIdPort;
708 708
 		}
709 709
 
710 710
 		return [$scheme, $cloudId];
Please login to merge, or discard this patch.