Completed
Push — master ( b87cc9...b87cc9 )
by Maxence
04:37 queued 02:26
created
lib/Db/MemberRequest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
 			$qb->filterDirectMembership(CoreQueryBuilder::MEMBER, $filter);
217 217
 		}
218 218
 
219
-		$qb->orderBy($qb->getDefaultSelectAlias() . '.level', 'desc');
220
-		$qb->addOrderBy($qb->getDefaultSelectAlias() . '.cached_name', 'asc');
219
+		$qb->orderBy($qb->getDefaultSelectAlias().'.level', 'desc');
220
+		$qb->addOrderBy($qb->getDefaultSelectAlias().'.cached_name', 'asc');
221 221
 
222 222
 		return $this->getItemsFromRequest($qb);
223 223
 	}
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 		$qb->limitToMembersByInheritance(CoreQueryBuilder::MEMBER, $singleId);
242 242
 
243 243
 		$aliasMembership = $qb->generateAlias(CoreQueryBuilder::MEMBER, CoreQueryBuilder::MEMBERSHIPS);
244
-		$qb->orderBy($aliasMembership . '.inheritance_depth', 'asc');
244
+		$qb->orderBy($aliasMembership.'.inheritance_depth', 'asc');
245 245
 //		$qb->groupBy(CoreQueryBuilder::MEMBER . '.single_id');
246 246
 
247 247
 		return $this->getItemsFromRequest($qb);
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 		$qb = $this->getMemberSelectSql();
279 279
 		$qb->limitToCircleId($circleId);
280 280
 
281
-		$qb->andwhere($qb->expr()->nonEmptyString(CoreQueryBuilder::MEMBER . '.instance'));
281
+		$qb->andwhere($qb->expr()->nonEmptyString(CoreQueryBuilder::MEMBER.'.instance'));
282 282
 //		$qb->groupBy(CoreQueryBuilder::MEMBER . '.instance');
283 283
 
284 284
 		return array_map(
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 	 */
335 335
 	public function searchFederatedUsers(string $needle): array {
336 336
 		$qb = $this->getMemberSelectSql();
337
-		$qb->searchInDBField('user_id', '%' . $needle . '%');
337
+		$qb->searchInDBField('user_id', '%'.$needle.'%');
338 338
 //		$qb->groupBy('single_id');
339 339
 
340 340
 		return $this->getItemsFromRequest($qb, true);
Please login to merge, or discard this patch.
lib/Db/CircleRequestBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 		$qb = $this->getQueryBuilder();
78 78
 		$qb->generateSelect(self::TABLE_CIRCLE, self::$tables[self::TABLE_CIRCLE], $alias, true)
79 79
 		   ->generateGroupBy(self::$tables[self::TABLE_CIRCLE], $alias)
80
-		   ->orderBy($alias . '.creation', 'asc');
80
+		   ->orderBy($alias.'.creation', 'asc');
81 81
 
82 82
 		return $qb;
83 83
 	}
Please login to merge, or discard this patch.
lib/Db/RemoteRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
 			$qb->leftJoin(
183 183
 				CoreQueryBuilder::REMOTE, self::TABLE_MEMBER, $aliasMember,
184 184
 				$expr->andX(
185
-					$expr->eq($aliasMember . '.circle_id', $qb->createNamedParameter($circle->getSingleId())),
186
-					$expr->eq($aliasMember . '.instance', CoreQueryBuilder::REMOTE . '.instance'),
185
+					$expr->eq($aliasMember.'.circle_id', $qb->createNamedParameter($circle->getSingleId())),
186
+					$expr->eq($aliasMember.'.instance', CoreQueryBuilder::REMOTE.'.instance'),
187 187
 					$expr->gte(
188
-						$aliasMember . '.level',
188
+						$aliasMember.'.level',
189 189
 						$qb->createNamedParameter(Member::LEVEL_MEMBER, IQueryBuilder::PARAM_INT)
190 190
 					)
191 191
 				)
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
 			$external = $expr->andX();
195 195
 			$external->add($qb->exprLimitToDBField('type', RemoteInstance::TYPE_EXTERNAL, true, false));
196
-			$external->add($expr->isNotNull($aliasMember . '.instance'));
196
+			$external->add($expr->isNotNull($aliasMember.'.instance'));
197 197
 			$orX->add($external);
198 198
 		}
199 199
 
Please login to merge, or discard this patch.
lib/Db/MemberRequestBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 			CoreQueryBuilder::MEMBER
90 90
 		)
91 91
 		   ->generateGroupBy(self::$tables[self::TABLE_MEMBER], CoreQueryBuilder::MEMBER)
92
-		   ->orderBy(CoreQueryBuilder::MEMBER . '.joined');
92
+		   ->orderBy(CoreQueryBuilder::MEMBER.'.joined');
93 93
 
94 94
 		if ($getBasedOn) {
95 95
 			$qb->leftJoinBasedOn(CoreQueryBuilder::MEMBER, $initiator);
Please login to merge, or discard this patch.
lib/Command/CirclesReport.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	 * @return string[]
219 219
 	 */
220 220
 	public function fillCommandList(string $source, string $field): array {
221
-		echo $source . ' ' . $field . "\n";
221
+		echo $source.' '.$field."\n";
222 222
 
223 223
 		return ['abcd', 'abdde', 'erfg'];
224 224
 	}
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 	 * @return string
395 395
 	 */
396 396
 	private function obfuscateId(string $id): string {
397
-		return substr($id, 0, 5) . '.' . md5(substr($id, 5));
397
+		return substr($id, 0, 5).'.'.md5(substr($id, 5));
398 398
 	}
399 399
 
400 400
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	 */
404 404
 	public function onNewPrompt(NC22InteractiveShellSession $session): void {
405 405
 		$prompt =
406
-			'Circles Report [<info>' . $this->report->getSource() . '</info>]:<comment>%PATH%</comment>';
406
+			'Circles Report [<info>'.$this->report->getSource().'</info>]:<comment>%PATH%</comment>';
407 407
 
408 408
 		$commands = [];
409 409
 		if ($session->getData()->g('currentStatus') === 'write') {
Please login to merge, or discard this patch.
lib/Command/CirclesCheck.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 * CirclesCheck constructor.
111 111
 	 *
112 112
 	 * @param Capabilities $capabilities
113
-	 * @param FederatedEvent $federatedEventService
113
+	 * @param FederatedEventService $federatedEventService
114 114
 	 * @param RemoteService $remoteService
115 115
 	 * @param RemoteStreamService $remoteStreamService
116 116
 	 * @param RemoteUpstreamService $remoteUpstreamService
@@ -619,7 +619,6 @@  discard block
 block discarded – undo
619 619
 
620 620
 
621 621
 	/**
622
-	 * @param OutputInterface $o
623 622
 	 * @param string $type
624 623
 	 * @param string $route
625 624
 	 * @param array $args
Please login to merge, or discard this 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.
lib/Service/RemoteStreamService.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,6 @@
 block discarded – undo
61 61
 use OCP\AppFramework\Http;
62 62
 use OCP\IURLGenerator;
63 63
 use ReflectionClass;
64
-use ReflectionException;
65 64
 
66 65
 
67 66
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@
 block discarded – undo
315 315
 	public function getCachedRemoteInstance(string $instance): RemoteInstance {
316 316
 		$remoteInstance = $this->remoteRequest->getFromInstance($instance);
317 317
 		if ($remoteInstance->getType() === RemoteInstance::TYPE_UNKNOWN) {
318
-			throw new UnknownRemoteException($instance . ' is set as \'unknown\' in database');
318
+			throw new UnknownRemoteException($instance.' is set as \'unknown\' in database');
319 319
 		}
320 320
 
321 321
 		return $remoteInstance;
Please login to merge, or discard this patch.
lib/Service/InterfaceService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -230,13 +230,13 @@
 block discarded – undo
230 230
 			throw new UnknownInterfaceException('misconfigured scheme');
231 231
 		}
232 232
 
233
-		$base = $scheme . '://' . $this->getCloudInstance();
233
+		$base = $scheme.'://'.$this->getCloudInstance();
234 234
 
235 235
 		if ($route === '') {
236 236
 			return $base;
237 237
 		}
238 238
 
239
-		return $base . $this->urlGenerator->linkToRoute($route, $args);
239
+		return $base.$this->urlGenerator->linkToRoute($route, $args);
240 240
 	}
241 241
 
242 242
 
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 			return $value;
162 162
 		}
163 163
 
164
-		if (($value = $this->config->getSystemValue('circles.' . $key, '')) !== '') {
164
+		if (($value = $this->config->getSystemValue('circles.'.$key, '')) !== '') {
165 165
 			return $value;
166 166
 		}
167 167
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 		}
416 416
 
417 417
 		if (array_key_exists('port', $loopback)) {
418
-			$loopbackCloudId = $loopback['host'] . ':' . $loopback['port'];
418
+			$loopbackCloudId = $loopback['host'].':'.$loopback['port'];
419 419
 		} else {
420 420
 			$loopbackCloudId = $loopback['host'];
421 421
 		}
@@ -444,12 +444,12 @@  discard block
 block discarded – undo
444 444
 			$scheme = $this->getAppValue(self::LOOPBACK_CLOUD_SCHEME);
445 445
 		}
446 446
 
447
-		$base = $scheme . '://' . $instance;
447
+		$base = $scheme.'://'.$instance;
448 448
 		if ($route === '') {
449 449
 			return $base;
450 450
 		}
451 451
 
452
-		return $base . $this->urlGenerator->linkToRoute($route, $args);
452
+		return $base.$this->urlGenerator->linkToRoute($route, $args);
453 453
 	}
454 454
 
455 455
 
Please login to merge, or discard this patch.