Completed
Pull Request — master (#1224)
by Maxence
48s
created
lib/Service/CircleService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 
581 581
 		$i = 1;
582 582
 		while (true) {
583
-			$testDisplayName = $baseDisplayName . (($i > 1) ? ' (' . $i . ')' : '');
583
+			$testDisplayName = $baseDisplayName.(($i > 1) ? ' ('.$i.')' : '');
584 584
 			$test = new Circle();
585 585
 			$test->setDisplayName($testDisplayName);
586 586
 
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 
614 614
 		$i = 1;
615 615
 		while (true) {
616
-			$testSanitizedName = $baseSanitizedName . (($i > 1) ? ' (' . $i . ')' : '');
616
+			$testSanitizedName = $baseSanitizedName.(($i > 1) ? ' ('.$i.')' : '');
617 617
 
618 618
 			$test = new Circle();
619 619
 			$test->setSanitizedName($testSanitizedName);
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 
756 756
 
757 757
 	private function generateGetCirclesCacheKey(FederatedUser $federatedUser, string $probeSum): string {
758
-		return $federatedUser->getSingleId() . '#' . $probeSum;
758
+		return $federatedUser->getSingleId().'#'.$probeSum;
759 759
 	}
760 760
 
761 761
 
Please login to merge, or discard this patch.
lib/ShareByCircleProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
 
447 447
 		return array_filter(
448 448
 			array_map(
449
-				function (ShareWrapper $wrapper) {
449
+				function(ShareWrapper $wrapper) {
450 450
 					return $wrapper->getShare($this->rootFolder, $this->userManager, $this->urlGenerator);
451 451
 				}, $wrappedShares
452 452
 			)
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 
499 499
 		return array_filter(
500 500
 			array_map(
501
-				function (ShareWrapper $wrapper) {
501
+				function(ShareWrapper $wrapper) {
502 502
 					return $wrapper->getShare($this->rootFolder, $this->userManager, $this->urlGenerator);
503 503
 				}, $wrappedShares
504 504
 			)
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
 
548 548
 		return array_filter(
549 549
 			array_map(
550
-				function (ShareWrapper $wrapper) {
550
+				function(ShareWrapper $wrapper) {
551 551
 					return $wrapper->getShare(
552 552
 						$this->rootFolder, $this->userManager, $this->urlGenerator, true
553 553
 					);
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
 
579 579
 		$share = $wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator);
580 580
 		if ($share->getPassword() !== '') {
581
-			$this->logger->notice('share is protected by a password, hash: ' . $share->getPassword());
581
+			$this->logger->notice('share is protected by a password, hash: '.$share->getPassword());
582 582
 		}
583 583
 
584 584
 		return $share;
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/Listeners/Files/RemovingMember.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		$singleIds = array_merge(
99 99
 			[$circle->getSingleId()],
100 100
 			array_map(
101
-				function (Membership $membership) {
101
+				function(Membership $membership) {
102 102
 					return $membership->getCircleId();
103 103
 				}, $circle->getMemberships()
104 104
 			)
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 			try {
153 153
 				$this->shareWrapperService->deleteUserSharesToCircle($singleId, $member->getUserId());
154 154
 			} catch (\Exception $e) {
155
-				$this->logger->notice('issue while deleting user shares: ' . $e->getMessage());
155
+				$this->logger->notice('issue while deleting user shares: '.$e->getMessage());
156 156
 			}
157 157
 		}
158 158
 	}
Please login to merge, or discard this patch.
lib/Db/CoreQueryBuilder.php 1 patch
Spacing   +85 added lines, -85 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
 			}
@@ -410,8 +410,8 @@  discard block
 block discarded – undo
410 410
 			foreach (explode(' ', $circle->getDescription()) as $word) {
411 411
 				$orDescription->add(
412 412
 					$expr->iLike(
413
-						$this->getDefaultSelectAlias() . '.' . 'description',
414
-						$this->createNamedParameter('%' . $word . '%')
413
+						$this->getDefaultSelectAlias().'.'.'description',
414
+						$this->createNamedParameter('%'.$word.'%')
415 415
 					)
416 416
 				);
417 417
 			}
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 			$this->generateRemoteInstanceSelectAlias($aliasRemoteInstance)
442 442
 				 ->leftJoin(
443 443
 				 	$alias, CoreRequestBuilder::TABLE_REMOTE, $aliasRemoteInstance,
444
-				 	$expr->eq($alias . '.instance', $aliasRemoteInstance . '.instance')
444
+				 	$expr->eq($alias.'.instance', $aliasRemoteInstance.'.instance')
445 445
 				 );
446 446
 		} catch (RequestBuilderException $e) {
447 447
 		}
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 		$expr = $this->expr();
494 494
 		$this->leftJoin(
495 495
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_REMOTE, $aliasRemote,
496
-			$expr->eq($aliasRemote . '.instance', $this->createNamedParameter($remoteInstance->getInstance()))
496
+			$expr->eq($aliasRemote.'.instance', $this->createNamedParameter($remoteInstance->getInstance()))
497 497
 		);
498 498
 	}
499 499
 
@@ -521,12 +521,12 @@  discard block
 block discarded – undo
521 521
 		$this->leftJoin(
522 522
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteMember,
523 523
 			$expr->andX(
524
-				$expr->eq($aliasRemoteMember . '.circle_id', $aliasCircle . '.unique_id'),
524
+				$expr->eq($aliasRemoteMember.'.circle_id', $aliasCircle.'.unique_id'),
525 525
 				$expr->eq(
526
-					$aliasRemoteMember . '.instance',
526
+					$aliasRemoteMember.'.instance',
527 527
 					$this->createNamedParameter($remoteInstance->getInstance())
528 528
 				),
529
-				$expr->gte($aliasRemoteMember . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
529
+				$expr->gte($aliasRemoteMember.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
530 530
 			)
531 531
 		);
532 532
 	}
@@ -558,21 +558,21 @@  discard block
 block discarded – undo
558 558
 		$this->leftJoin(
559 559
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircle,
560 560
 			$expr->andX(
561
-				$expr->eq($aliasRemoteCircle . '.single_id', $aliasCircle . '.unique_id'),
562
-				$expr->emptyString($aliasRemoteCircle . '.instance'),
563
-				$expr->gte($aliasRemoteCircle . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
561
+				$expr->eq($aliasRemoteCircle.'.single_id', $aliasCircle.'.unique_id'),
562
+				$expr->emptyString($aliasRemoteCircle.'.instance'),
563
+				$expr->gte($aliasRemoteCircle.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
564 564
 			)
565 565
 		);
566 566
 		$this->leftJoin(
567 567
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircleOwner,
568 568
 			$expr->andX(
569
-				$expr->eq($aliasRemoteCircle . '.circle_id', $aliasRemoteCircleOwner . '.circle_id'),
569
+				$expr->eq($aliasRemoteCircle.'.circle_id', $aliasRemoteCircleOwner.'.circle_id'),
570 570
 				$expr->eq(
571
-					$aliasRemoteCircleOwner . '.instance',
571
+					$aliasRemoteCircleOwner.'.instance',
572 572
 					$this->createNamedParameter($remoteInstance->getInstance())
573 573
 				),
574 574
 				$expr->eq(
575
-					$aliasRemoteCircleOwner . '.level', $this->createNamedParameter(Member::LEVEL_OWNER)
575
+					$aliasRemoteCircleOwner.'.level', $this->createNamedParameter(Member::LEVEL_OWNER)
576 576
 				)
577 577
 			)
578 578
 		);
@@ -605,16 +605,16 @@  discard block
 block discarded – undo
605 605
 		$expr = $this->expr();
606 606
 		$orX = $expr->orX();
607 607
 		$orX->add(
608
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE))
608
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE))
609 609
 		);
610 610
 
611 611
 		$orExtOrPassive = $expr->orX();
612 612
 		$orExtOrPassive->add(
613
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
613
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
614 614
 		);
615 615
 		if (!$sensitive) {
616 616
 			$orExtOrPassive->add(
617
-				$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
617
+				$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
618 618
 			);
619 619
 		} else {
620 620
 			if ($this->getDefaultSelectAlias() === CoreQueryBuilder::MEMBER) {
@@ -623,8 +623,8 @@  discard block
 block discarded – undo
623 623
 		}
624 624
 
625 625
 		$orInstance = $expr->orX();
626
-		$orInstance->add($expr->isNotNull($aliasRemoteMember . '.instance'));
627
-		$orInstance->add($expr->isNotNull($aliasRemoteCircleOwner . '.instance'));
626
+		$orInstance->add($expr->isNotNull($aliasRemoteMember.'.instance'));
627
+		$orInstance->add($expr->isNotNull($aliasRemoteCircleOwner.'.instance'));
628 628
 
629 629
 		$andExternal = $expr->andX();
630 630
 		$andExternal->add($orExtOrPassive);
@@ -633,13 +633,13 @@  discard block
 block discarded – undo
633 633
 		$orExtOrTrusted = $expr->orX();
634 634
 		$orExtOrTrusted->add($andExternal);
635 635
 		$orExtOrTrusted->add(
636
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
636
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
637 637
 		);
638 638
 
639 639
 		$andTrusted = $expr->andX();
640 640
 		$andTrusted->add($orExtOrTrusted);
641 641
 		$andTrusted->add($this->exprLimitBitwise('config', Circle::CFG_FEDERATED, $aliasCircle));
642
-		$andTrusted->add($expr->emptyString($aliasOwner . '.instance'));
642
+		$andTrusted->add($expr->emptyString($aliasOwner.'.instance'));
643 643
 		$orX->add($andTrusted);
644 644
 
645 645
 		$this->andWhere($orX);
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 		}
667 667
 		$this->innerJoin(
668 668
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
669
-			$expr->eq($aliasMember . '.circle_id', $alias . '.unique_id')
669
+			$expr->eq($aliasMember.'.circle_id', $alias.'.unique_id')
670 670
 		);
671 671
 
672 672
 		$this->filterDirectMembership($aliasMember, $member);
@@ -691,12 +691,12 @@  discard block
 block discarded – undo
691 691
 			$aliasCircle,
692 692
 			'circles_membership',
693 693
 			$aliasMembership,
694
-			$this->expr()->eq($aliasCircle . '.unique_id', $aliasMembership . '.circle_id')
694
+			$this->expr()->eq($aliasCircle.'.unique_id', $aliasMembership.'.circle_id')
695 695
 		);
696 696
 
697 697
 		$this->andWhere(
698 698
 			$this->expr()->eq(
699
-				$aliasMembership . '.single_id',
699
+				$aliasMembership.'.single_id',
700 700
 				$this->createNamedParameter($federatedUser->getSingleId())
701 701
 			)
702 702
 		);
@@ -717,19 +717,19 @@  discard block
 block discarded – undo
717 717
 
718 718
 		if ($member->getUserId() !== '') {
719 719
 			$andX->add(
720
-				$expr->eq($aliasMember . '.user_id', $this->createNamedParameter($member->getUserId()))
720
+				$expr->eq($aliasMember.'.user_id', $this->createNamedParameter($member->getUserId()))
721 721
 			);
722 722
 		}
723 723
 
724 724
 		if ($member->getSingleId() !== '') {
725 725
 			$andX->add(
726
-				$expr->eq($aliasMember . '.single_id', $this->createNamedParameter($member->getSingleId()))
726
+				$expr->eq($aliasMember.'.single_id', $this->createNamedParameter($member->getSingleId()))
727 727
 			);
728 728
 		}
729 729
 
730 730
 		if ($member->getUserType() > 0) {
731 731
 			$andX->add(
732
-				$expr->eq($aliasMember . '.user_type', $this->createNamedParameter($member->getUserType()))
732
+				$expr->eq($aliasMember.'.user_type', $this->createNamedParameter($member->getUserType()))
733 733
 			);
734 734
 		}
735 735
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
 		if ($member->getLevel() > 0) {
739 739
 			$andX->add(
740 740
 				$expr->gte(
741
-					$aliasMember . '.level',
741
+					$aliasMember.'.level',
742 742
 					$this->createNamedParameter($member->getLevel(), IQueryBuilder::PARAM_INT)
743 743
 				)
744 744
 			);
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
 			$helperAlias,
780 780
 			CoreRequestBuilder::TABLE_CIRCLE,
781 781
 			$aliasCircle,
782
-			$expr->eq($aliasCircle . '.unique_id', $helperAlias . '.' . $field)
782
+			$expr->eq($aliasCircle.'.unique_id', $helperAlias.'.'.$field)
783 783
 		);
784 784
 
785 785
 		if (!is_null($initiator)) {
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 		$this->generateCircleSelectAlias($aliasInvitedBy)
811 811
 			 ->leftJoin(
812 812
 			 	$aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasInvitedBy,
813
-			 	$expr->eq($aliasMember . '.invited_by', $aliasInvitedBy . '.unique_id')
813
+			 	$expr->eq($aliasMember.'.invited_by', $aliasInvitedBy.'.unique_id')
814 814
 			 );
815 815
 
816 816
 		$this->leftJoinOwner($aliasInvitedBy);
@@ -841,7 +841,7 @@  discard block
 block discarded – undo
841 841
 		$this->generateCircleSelectAlias($aliasBasedOn)
842 842
 			 ->leftJoin(
843 843
 			 	$aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasBasedOn,
844
-			 	$expr->eq($aliasBasedOn . '.unique_id', $aliasMember . '.single_id')
844
+			 	$expr->eq($aliasBasedOn.'.unique_id', $aliasMember.'.single_id')
845 845
 			 );
846 846
 
847 847
 		if (!is_null($initiator)) {
@@ -874,9 +874,9 @@  discard block
 block discarded – undo
874 874
 			 ->leftJoin(
875 875
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
876 876
 			 	$expr->andX(
877
-			 		$expr->eq($aliasMember . '.circle_id', $alias . '.' . $field),
877
+			 		$expr->eq($aliasMember.'.circle_id', $alias.'.'.$field),
878 878
 			 		$expr->eq(
879
-			 			$aliasMember . '.level',
879
+			 			$aliasMember.'.level',
880 880
 			 			$this->createNamedParameter(Member::LEVEL_OWNER, self::PARAM_INT)
881 881
 			 		)
882 882
 			 	)
@@ -908,7 +908,7 @@  discard block
 block discarded – undo
908 908
 
909 909
 		$expr = $this->expr();
910 910
 
911
-		$on = $expr->andX($expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field));
911
+		$on = $expr->andX($expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field));
912 912
 
913 913
 		// limit on membership level if requested
914 914
 		$minLevel = $probe->getMinimumLevel();
@@ -949,8 +949,8 @@  discard block
 block discarded – undo
949 949
 			 ->leftJoin(
950 950
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
951 951
 			 	$expr->andX(
952
-			 		$expr->eq($aliasMember . '.circle_id', $alias . '.' . $fieldCircleId),
953
-			 		$expr->eq($aliasMember . '.single_id', $alias . '.' . $fieldSingleId),
952
+			 		$expr->eq($aliasMember.'.circle_id', $alias.'.'.$fieldCircleId),
953
+			 		$expr->eq($aliasMember.'.single_id', $alias.'.'.$fieldSingleId),
954 954
 			 		$this->exprGt('level', Member::LEVEL_MEMBER, true, $aliasMember)
955 955
 			 	)
956 956
 			 );
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
 
983 983
 		$this->leftJoin(
984 984
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership,
985
-			$expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field)
985
+			$expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field)
986 986
 		);
987 987
 
988 988
 //		if (!$this->getBool('getData', $options, false)) {
@@ -996,8 +996,8 @@  discard block
 block discarded – undo
996 996
 			 ->leftJoin(
997 997
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy,
998 998
 			 	$expr->andX(
999
-			 		$expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id'),
1000
-			 		$expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id')
999
+			 		$expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id'),
1000
+			 		$expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id')
1001 1001
 			 	)
1002 1002
 			 );
1003 1003
 
@@ -1014,12 +1014,12 @@  discard block
 block discarded – undo
1014 1014
 		$aliasUpstreamMembership = $this->generateAlias($alias, self::UPSTREAM_MEMBERSHIPS, $options);
1015 1015
 		$this->leftJoin(
1016 1016
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasUpstreamMembership,
1017
-			$expr->eq($aliasUpstreamMembership . '.single_id', $this->createNamedParameter($singleId))
1017
+			$expr->eq($aliasUpstreamMembership.'.single_id', $this->createNamedParameter($singleId))
1018 1018
 		);
1019 1019
 
1020 1020
 		$orX = $expr->orX(
1021
-			$expr->eq($aliasUpstreamMembership . '.circle_id', $alias . '.' . $field),
1022
-			$expr->eq($alias . '.' . $field, $this->createNamedParameter($singleId))
1021
+			$expr->eq($aliasUpstreamMembership.'.circle_id', $alias.'.'.$field),
1022
+			$expr->eq($alias.'.'.$field, $this->createNamedParameter($singleId))
1023 1023
 		);
1024 1024
 
1025 1025
 		$this->andWhere($orX);
@@ -1040,11 +1040,11 @@  discard block
 block discarded – undo
1040 1040
 
1041 1041
 		$expr = $this->expr();
1042 1042
 		$aliasMembership = $this->generateAlias($alias, self::MEMBERSHIPS);
1043
-		$this->andWhere($expr->eq($aliasMembership . '.circle_id', $this->createNamedParameter($singleId)));
1043
+		$this->andWhere($expr->eq($aliasMembership.'.circle_id', $this->createNamedParameter($singleId)));
1044 1044
 		if ($level > 1) {
1045 1045
 			$this->andWhere(
1046 1046
 				$expr->gte(
1047
-					$aliasMembership . '.level',
1047
+					$aliasMembership.'.level',
1048 1048
 					$this->createNamedParameter($level, IQueryBuilder::PARAM_INT)
1049 1049
 				)
1050 1050
 			);
@@ -1072,8 +1072,8 @@  discard block
 block discarded – undo
1072 1072
 		$this->leftJoin(
1073 1073
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership,
1074 1074
 			$expr->andX(
1075
-				$expr->eq($aliasMembership . '.inheritance_last', $alias . '.' . $field),
1076
-				$expr->eq($aliasMembership . '.single_id', $alias . '.single_id')
1075
+				$expr->eq($aliasMembership.'.inheritance_last', $alias.'.'.$field),
1076
+				$expr->eq($aliasMembership.'.single_id', $alias.'.single_id')
1077 1077
 			)
1078 1078
 		);
1079 1079
 
@@ -1086,8 +1086,8 @@  discard block
 block discarded – undo
1086 1086
 			 ->leftJoin(
1087 1087
 			 	$aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritanceFrom,
1088 1088
 			 	$expr->andX(
1089
-			 		$expr->eq($aliasMembership . '.circle_id', $aliasInheritanceFrom . '.circle_id'),
1090
-			 		$expr->eq($aliasMembership . '.inheritance_first', $aliasInheritanceFrom . '.single_id')
1089
+			 		$expr->eq($aliasMembership.'.circle_id', $aliasInheritanceFrom.'.circle_id'),
1090
+			 		$expr->eq($aliasMembership.'.inheritance_first', $aliasInheritanceFrom.'.single_id')
1091 1091
 			 	)
1092 1092
 			 );
1093 1093
 	}
@@ -1127,7 +1127,7 @@  discard block
 block discarded – undo
1127 1127
 
1128 1128
 		$this->leftJoin(
1129 1129
 			$alias, CoreRequestBuilder::TABLE_TOKEN, $aliasShareToken,
1130
-			$expr->eq($aliasShareToken . '.share_id', $alias . '.' . $field)
1130
+			$expr->eq($aliasShareToken.'.share_id', $alias.'.'.$field)
1131 1131
 		);
1132 1132
 	}
1133 1133
 
@@ -1169,14 +1169,14 @@  discard block
 block discarded – undo
1169 1169
 		try {
1170 1170
 			$aliasConfig = $this->generateAlias($alias, self::CONFIG, $options);
1171 1171
 			$this->selectAlias(
1172
-				$aliasConfig . '.config',
1173
-				(($alias !== $this->getDefaultSelectAlias()) ? $alias . '_' : '') . 'circle_config'
1172
+				$aliasConfig.'.config',
1173
+				(($alias !== $this->getDefaultSelectAlias()) ? $alias.'_' : '').'circle_config'
1174 1174
 			);
1175 1175
 			$this->leftJoin(
1176 1176
 				$alias,
1177 1177
 				CoreRequestBuilder::TABLE_CIRCLE,
1178 1178
 				$aliasConfig,
1179
-				$expr->eq($alias . '.circle_id', $aliasConfig . '.unique_id')
1179
+				$expr->eq($alias.'.circle_id', $aliasConfig.'.unique_id')
1180 1180
 			);
1181 1181
 		} catch (RequestBuilderException $e) {
1182 1182
 		}
@@ -1214,7 +1214,7 @@  discard block
 block discarded – undo
1214 1214
 			$aliasMembership,
1215 1215
 			$expr->andX(
1216 1216
 				$this->exprLimit('single_id', $initiator->getSingleId(), $aliasMembership),
1217
-				$expr->eq($aliasMembership . '.circle_id', $helperAlias . '.' . $field)
1217
+				$expr->eq($aliasMembership.'.circle_id', $helperAlias.'.'.$field)
1218 1218
 			)
1219 1219
 		);
1220 1220
 
@@ -1233,11 +1233,11 @@  discard block
 block discarded – undo
1233 1233
 			$aliasMembershipCircle = $this->generateAlias($aliasMembership, self::CONFIG, $options);
1234 1234
 			$orXMembershipCircle = $expr->orX();
1235 1235
 			array_map(
1236
-				function (string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) {
1236
+				function(string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) {
1237 1237
 					$orXMembershipCircle->add(
1238 1238
 						$this->expr()->eq(
1239
-							$alias . '.circle_id',
1240
-							$aliasMembershipCircle . '.unique_id'
1239
+							$alias.'.circle_id',
1240
+							$aliasMembershipCircle.'.unique_id'
1241 1241
 						)
1242 1242
 					);
1243 1243
 				},
@@ -1269,7 +1269,7 @@  discard block
 block discarded – undo
1269 1269
 					 	$aliasDirectInitiator,
1270 1270
 					 	$expr->andX(
1271 1271
 					 		$this->exprLimit('single_id', $initiator->getSingleId(), $aliasDirectInitiator),
1272
-					 		$expr->eq($aliasDirectInitiator . '.circle_id', $helperAlias . '.' . $field)
1272
+					 		$expr->eq($aliasDirectInitiator.'.circle_id', $helperAlias.'.'.$field)
1273 1273
 					 	)
1274 1274
 					 );
1275 1275
 			} catch (RequestBuilderException $e) {
@@ -1283,8 +1283,8 @@  discard block
 block discarded – undo
1283 1283
 			$this->leftJoin(
1284 1284
 				$aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator,
1285 1285
 				$expr->andX(
1286
-					$expr->eq($aliasMembership . '.inheritance_first', $aliasInitiator . '.single_id'),
1287
-					$expr->eq($aliasMembership . '.circle_id', $aliasInitiator . '.circle_id')
1286
+					$expr->eq($aliasMembership.'.inheritance_first', $aliasInitiator.'.single_id'),
1287
+					$expr->eq($aliasMembership.'.circle_id', $aliasInitiator.'.circle_id')
1288 1288
 				)
1289 1289
 			);
1290 1290
 
@@ -1292,8 +1292,8 @@  discard block
 block discarded – undo
1292 1292
 			$this->leftJoin(
1293 1293
 				$aliasInitiator, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy,
1294 1294
 				$expr->andX(
1295
-					$expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id'),
1296
-					$expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id')
1295
+					$expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id'),
1296
+					$expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id')
1297 1297
 				)
1298 1298
 			);
1299 1299
 
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
 			 ->leftJoin(
1339 1339
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator,
1340 1340
 			 	$expr->andX(
1341
-			 		$expr->eq($aliasInitiator . '.circle_id', $helperAlias . '.' . $field),
1341
+			 		$expr->eq($aliasInitiator.'.circle_id', $helperAlias.'.'.$field),
1342 1342
 			 		$this->exprLimitInt('level', Member::LEVEL_OWNER, $aliasInitiator)
1343 1343
 			 	)
1344 1344
 			 );
@@ -1374,7 +1374,7 @@  discard block
 block discarded – undo
1374 1374
 			$orX->add(
1375 1375
 				$expr->andX(
1376 1376
 					$this->exprLimitBitwise('config', Circle::CFG_PERSONAL, $aliasMembershipCircle),
1377
-					$expr->eq($aliasMembership . '.level', $this->createNamedParameter(Member::LEVEL_OWNER))
1377
+					$expr->eq($aliasMembership.'.level', $this->createNamedParameter(Member::LEVEL_OWNER))
1378 1378
 				)
1379 1379
 			);
1380 1380
 		}
@@ -1384,10 +1384,10 @@  discard block
 block discarded – undo
1384 1384
 		$orXLevelCheck = $expr->orX();
1385 1385
 
1386 1386
 		array_map(
1387
-			function (string $alias) use ($orXLevelCheck, $minimumLevel) {
1387
+			function(string $alias) use ($orXLevelCheck, $minimumLevel) {
1388 1388
 				$orXLevelCheck->add(
1389 1389
 					$this->expr()->gte(
1390
-						$alias . '.level',
1390
+						$alias.'.level',
1391 1391
 						$this->createNamedParameter($minimumLevel)
1392 1392
 					)
1393 1393
 				);
@@ -1477,21 +1477,21 @@  discard block
 block discarded – undo
1477 1477
 		$expr = $this->expr();
1478 1478
 		$andPassive = $expr->andX();
1479 1479
 		$andPassive->add(
1480
-			$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
1480
+			$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
1481 1481
 		);
1482 1482
 
1483 1483
 		$orMemberOrLevel = $expr->orX();
1484 1484
 		$orMemberOrLevel->add(
1485
-			$expr->eq($this->getDefaultSelectAlias() . '.instance', $alias . '.instance')
1485
+			$expr->eq($this->getDefaultSelectAlias().'.instance', $alias.'.instance')
1486 1486
 		);
1487 1487
 		// TODO: do we need this ? (display members from the local instance)
1488 1488
 		$orMemberOrLevel->add(
1489
-			$expr->emptyString($this->getDefaultSelectAlias() . '.instance')
1489
+			$expr->emptyString($this->getDefaultSelectAlias().'.instance')
1490 1490
 		);
1491 1491
 
1492 1492
 		$orMemberOrLevel->add(
1493 1493
 			$expr->eq(
1494
-				$this->getDefaultSelectAlias() . '.level',
1494
+				$this->getDefaultSelectAlias().'.level',
1495 1495
 				$this->createNamedParameter(Member::LEVEL_OWNER)
1496 1496
 			)
1497 1497
 		);
@@ -1528,11 +1528,11 @@  discard block
 block discarded – undo
1528 1528
 			 )
1529 1529
 			 ->leftJoin(
1530 1530
 			 	$aliasShare, CoreRequestBuilder::TABLE_FILE_CACHE, $aliasFileCache,
1531
-			 	$expr->eq($aliasShare . '.file_source', $aliasFileCache . '.fileid')
1531
+			 	$expr->eq($aliasShare.'.file_source', $aliasFileCache.'.fileid')
1532 1532
 			 )
1533 1533
 			 ->leftJoin(
1534 1534
 			 	$aliasFileCache, CoreRequestBuilder::TABLE_STORAGES, $aliasStorages,
1535
-			 	$expr->eq($aliasFileCache . '.storage', $aliasStorages . '.numeric_id')
1535
+			 	$expr->eq($aliasFileCache.'.storage', $aliasStorages.'.numeric_id')
1536 1536
 			 );
1537 1537
 	}
1538 1538
 
@@ -1554,8 +1554,8 @@  discard block
 block discarded – undo
1554 1554
 		$this->leftJoin(
1555 1555
 			$aliasShareMemberships, CoreRequestBuilder::TABLE_SHARE, $aliasShareChild,
1556 1556
 			$expr->andX(
1557
-				$expr->eq($aliasShareChild . '.parent', $aliasShare . '.id'),
1558
-				$expr->eq($aliasShareChild . '.share_with', $aliasShareMemberships . '.single_id')
1557
+				$expr->eq($aliasShareChild.'.parent', $aliasShare.'.id'),
1558
+				$expr->eq($aliasShareChild.'.share_with', $aliasShareMemberships.'.single_id')
1559 1559
 			)
1560 1560
 		);
1561 1561
 
@@ -1605,13 +1605,13 @@  discard block
 block discarded – undo
1605 1605
 		$this->leftJoin(
1606 1606
 			$aliasMountMemberships, CoreRequestBuilder::TABLE_MOUNTPOINT, $aliasMountpoint,
1607 1607
 			$expr->andX(
1608
-				$expr->eq($aliasMountpoint . '.mount_id', $aliasMount . '.mount_id'),
1609
-				$expr->eq($aliasMountpoint . '.single_id', $aliasMountMemberships . '.single_id')
1608
+				$expr->eq($aliasMountpoint.'.mount_id', $aliasMount.'.mount_id'),
1609
+				$expr->eq($aliasMountpoint.'.single_id', $aliasMountMemberships.'.single_id')
1610 1610
 			)
1611 1611
 		);
1612 1612
 
1613
-		$this->selectAlias($aliasMountpoint . '.mountpoint', $aliasMountpoint . '_mountpoint');
1614
-		$this->selectAlias($aliasMountpoint . '.mountpoint_hash', $aliasMountpoint . '_mountpoint_hash');
1613
+		$this->selectAlias($aliasMountpoint.'.mountpoint', $aliasMountpoint.'_mountpoint');
1614
+		$this->selectAlias($aliasMountpoint.'.mountpoint_hash', $aliasMountpoint.'_mountpoint_hash');
1615 1615
 	}
1616 1616
 
1617 1617
 
@@ -1719,10 +1719,10 @@  discard block
 block discarded – undo
1719 1719
 	 */
1720 1720
 	public function generateAlias(string $base, string $extension, ?array &$options = []): string {
1721 1721
 		$search = str_replace('_', '.', $base);
1722
-		$path = $search . '.' . $extension;
1722
+		$path = $search.'.'.$extension;
1723 1723
 		if (!$this->validKey($path, $this->getSqlPath())
1724 1724
 			&& !in_array($extension, $this->getArray($search, $this->getSqlPath()))) {
1725
-			throw new RequestBuilderException($extension . ' not found in ' . $search);
1725
+			throw new RequestBuilderException($extension.' not found in '.$search);
1726 1726
 		}
1727 1727
 
1728 1728
 		if (!is_array($options)) {
@@ -1731,15 +1731,15 @@  discard block
 block discarded – undo
1731 1731
 
1732 1732
 		$optionPath = '';
1733 1733
 		foreach (explode('.', $path) as $p) {
1734
-			$optionPath = trim($optionPath . '.' . $p, '.');
1734
+			$optionPath = trim($optionPath.'.'.$p, '.');
1735 1735
 			$options = array_merge(
1736 1736
 				$options,
1737
-				$this->getArray($optionPath . '.' . self::OPTIONS, $this->getSqlPath()),
1738
-				$this->getArray($optionPath . '.' . self::OPTIONS, $this->options)
1737
+				$this->getArray($optionPath.'.'.self::OPTIONS, $this->getSqlPath()),
1738
+				$this->getArray($optionPath.'.'.self::OPTIONS, $this->options)
1739 1739
 			);
1740 1740
 		}
1741 1741
 
1742
-		return $base . '_' . $extension;
1742
+		return $base.'_'.$extension;
1743 1743
 	}
1744 1744
 
1745 1745
 
@@ -1759,7 +1759,7 @@  discard block
 block discarded – undo
1759 1759
 			} else {
1760 1760
 				$k = $arr;
1761 1761
 			}
1762
-			$path[$k] = $prefix . '_' . $k . '_';
1762
+			$path[$k] = $prefix.'_'.$k.'_';
1763 1763
 		}
1764 1764
 
1765 1765
 		return $path;
Please login to merge, or discard this patch.