Completed
Pull Request — master (#1325)
by Maxence
37s
created
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/EventWrapperRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 				$qb->exprLimitInt('status', EventWrapper::STATUS_FAILED),
106 106
 				$expr->andX(
107 107
 					$qb->exprLimitInt('status', EventWrapper::STATUS_INIT),
108
-					$qb->exprGt('creation', time() - 86400),  // only freshly created; less than 3 hours
108
+					$qb->exprGt('creation', time() - 86400), // only freshly created; less than 3 hours
109 109
 					$qb->exprLt('creation', time() - 900)     // but not too fresh, at least 15 minutes
110 110
 				)
111 111
 			)
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 			return $value;
245 245
 		}
246 246
 
247
-		if (($value = $this->config->getSystemValue(Application::APP_ID . '.' . $key, '')) !== '') {
247
+		if (($value = $this->config->getSystemValue(Application::APP_ID.'.'.$key, '')) !== '') {
248 248
 			return $value;
249 249
 		}
250 250
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 	 */
499 499
 	public function getTrustedDomains(): array {
500 500
 		return array_map(
501
-			function (string $address) {
501
+			function(string $address) {
502 502
 				return strtolower($address);
503 503
 			}, $this->config->getSystemValue('trusted_domains', [])
504 504
 		);
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 		}
535 535
 
536 536
 		if (array_key_exists('port', $loopback)) {
537
-			$loopbackCloudId = $loopback['host'] . ':' . $loopback['port'];
537
+			$loopbackCloudId = $loopback['host'].':'.$loopback['port'];
538 538
 		} else {
539 539
 			$loopbackCloudId = $loopback['host'];
540 540
 		}
@@ -573,13 +573,13 @@  discard block
 block discarded – undo
573 573
 			$path = $this->getAppValue(self::LOOPBACK_CLOUD_PATH);
574 574
 		}
575 575
 
576
-		$base = $scheme . '://' . $instance . $path;
576
+		$base = $scheme.'://'.$instance.$path;
577 577
 
578 578
 		if ($route === '') {
579 579
 			return $base;
580 580
 		}
581 581
 
582
-		return rtrim($base, '/') . $this->linkToRoute($route, $args);
582
+		return rtrim($base, '/').$this->linkToRoute($route, $args);
583 583
 	}
584 584
 
585 585
 
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
 	): string {
685 685
 		$name = ($displayName) ? $federatedUser->getDisplayName() : $federatedUser->getUserId();
686 686
 		if ($federatedUser->getUserType() === Member::TYPE_MAIL) {
687
-			return $name . ' ' . $this->displayInstance(
687
+			return $name.' '.$this->displayInstance(
688 688
 				$federatedUser->getInstance(),
689 689
 				self::DISPLAY_PARENTHESIS
690 690
 			);
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
 			return $name;
695 695
 		}
696 696
 
697
-		return $name . $this->displayInstance($federatedUser->getInstance(), self::DISPLAY_AT);
697
+		return $name.$this->displayInstance($federatedUser->getInstance(), self::DISPLAY_AT);
698 698
 	}
699 699
 
700 700
 	/**
@@ -710,9 +710,9 @@  discard block
 block discarded – undo
710 710
 
711 711
 		switch ($type) {
712 712
 			case self::DISPLAY_AT:
713
-				return '@' . $instance;
713
+				return '@'.$instance;
714 714
 			case self::DISPLAY_PARENTHESIS:
715
-				return '(' . $instance . ')';
715
+				return '('.$instance.')';
716 716
 		}
717 717
 
718 718
 		return $instance;
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 			// when running from the occ command, /index.php is not removed by itself
765 765
 			if (str_starts_with($path, '/index.php/')
766 766
 				&& $this->config->getSystemValueString('htaccess.RewriteBase', '') !== '') {
767
-				$path = $this->config->getSystemValueString('htaccess.RewriteBase', '/') . substr($path, 11);
767
+				$path = $this->config->getSystemValueString('htaccess.RewriteBase', '/').substr($path, 11);
768 768
 			}
769 769
 
770 770
 			$knownPath = parse_url($this->config->getSystemValue('overwrite.cli.url'), PHP_URL_PATH);
Please login to merge, or discard this patch.
lib/Command/CirclesRemote.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -173,19 +173,19 @@  discard block
 block discarded – undo
173 173
 
174 174
 		$webfinger = $this->getWebfinger($host, Application::APP_SUBJECT);
175 175
 		if ($this->input->getOption('all')) {
176
-			$this->output->writeln('- Webfinger on <info>' . $host . '</info>');
176
+			$this->output->writeln('- Webfinger on <info>'.$host.'</info>');
177 177
 			$this->output->writeln(json_encode($webfinger, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
178 178
 			$this->output->writeln('');
179 179
 		}
180 180
 
181 181
 		if ($this->input->getOption('all')) {
182 182
 			$circleLink = $this->extractLink(Application::APP_REL, $webfinger);
183
-			$this->output->writeln('- Information about Circles app on <info>' . $host . '</info>');
183
+			$this->output->writeln('- Information about Circles app on <info>'.$host.'</info>');
184 184
 			$this->output->writeln(json_encode($circleLink, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
185 185
 			$this->output->writeln('');
186 186
 		}
187 187
 
188
-		$this->output->writeln('- Available services on <info>' . $host . '</info>');
188
+		$this->output->writeln('- Available services on <info>'.$host.'</info>');
189 189
 		foreach ($webfinger->getLinks() as $link) {
190 190
 			$app = $link->getProperty('name');
191 191
 			$ver = $link->getProperty('version');
@@ -193,14 +193,14 @@  discard block
 block discarded – undo
193 193
 				$app .= ' ';
194 194
 			}
195 195
 			if ($ver !== '') {
196
-				$ver = 'v' . $ver;
196
+				$ver = 'v'.$ver;
197 197
 			}
198 198
 
199
-			$this->output->writeln(' * ' . $link->getRel() . ' ' . $app . $ver);
199
+			$this->output->writeln(' * '.$link->getRel().' '.$app.$ver);
200 200
 		}
201 201
 		$this->output->writeln('');
202 202
 
203
-		$this->output->writeln('- Resources related to Circles on <info>' . $host . '</info>');
203
+		$this->output->writeln('- Resources related to Circles on <info>'.$host.'</info>');
204 204
 		$resource = $this->getResourceData($host, Application::APP_SUBJECT, Application::APP_REL);
205 205
 		$this->output->writeln(json_encode($resource, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
206 206
 		$this->output->writeln('');
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
 		$tempUid = $resource->g('uid');
210 210
 		$this->output->writeln(
211
-			'- Confirming UID=' . $tempUid . ' from parsed Signatory at <info>' . $host . '</info>'
211
+			'- Confirming UID='.$tempUid.' from parsed Signatory at <info>'.$host.'</info>'
212 212
 		);
213 213
 
214 214
 		try {
@@ -217,15 +217,15 @@  discard block
 block discarded – undo
217 217
 			$this->output->writeln(' * No SignatureException: <info>Identity authed</info>');
218 218
 		} catch (SignatureException $e) {
219 219
 			$this->output->writeln(
220
-				'<error>' . $host . ' cannot auth its identity: ' . $e->getMessage() . '</error>'
220
+				'<error>'.$host.' cannot auth its identity: '.$e->getMessage().'</error>'
221 221
 			);
222 222
 
223 223
 			return;
224 224
 		}
225 225
 
226
-		$this->output->writeln(' * Found <info>' . $remoteSignatory->getUid() . '</info>');
226
+		$this->output->writeln(' * Found <info>'.$remoteSignatory->getUid().'</info>');
227 227
 		if ($remoteSignatory->getUid(true) !== $tempUid) {
228
-			$this->output->writeln('<error>looks like ' . $host . ' is faking its identity');
228
+			$this->output->writeln('<error>looks like '.$host.' is faking its identity');
229 229
 
230 230
 			return;
231 231
 		}
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		$this->output->writeln('');
234 234
 
235 235
 		$testUrl = $resource->g('test');
236
-		$this->output->writeln('- Testing signed payload on <info>' . $testUrl . '</info>');
236
+		$this->output->writeln('- Testing signed payload on <info>'.$testUrl.'</info>');
237 237
 
238 238
 		try {
239 239
 			$localSignatory = $this->remoteStreamService->getAppSignatory();
@@ -255,18 +255,18 @@  discard block
 block discarded – undo
255 255
 		$this->output->writeln('');
256 256
 
257 257
 		$this->output->writeln(' * Clear Signature: ');
258
-		$this->output->writeln('<comment>' . $signedRequest->getClearSignature() . '</comment>');
258
+		$this->output->writeln('<comment>'.$signedRequest->getClearSignature().'</comment>');
259 259
 		$this->output->writeln('');
260 260
 
261 261
 		$this->output->writeln(' * Signed Signature (base64 encoded): ');
262 262
 		$this->output->writeln(
263
-			'<comment>' . base64_encode($signedRequest->getSignedSignature()) . '</comment>'
263
+			'<comment>'.base64_encode($signedRequest->getSignedSignature()).'</comment>'
264 264
 		);
265 265
 		$this->output->writeln('');
266 266
 
267 267
 		$result = $signedRequest->getOutgoingRequest()->getResult();
268 268
 		$code = $result->getStatusCode();
269
-		$this->output->writeln(' * Result: ' . (($code === 200) ? '<info>' . $code . '</info>' : $code));
269
+		$this->output->writeln(' * Result: '.(($code === 200) ? '<info>'.$code.'</info>' : $code));
270 270
 		$this->output->writeln(
271 271
 			json_encode(json_decode($result->getContent(), true), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
272 272
 		);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 				$stored = new RemoteInstance();
289 289
 				$this->remoteStreamService->confirmValidRemote($remoteSignatory, $stored);
290 290
 				$this->output->writeln(
291
-					'<info>The remote instance ' . $host
291
+					'<info>The remote instance '.$host
292 292
 					. ' is already known with this current identity</info>'
293 293
 				);
294 294
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 
299 299
 				if ($remoteSignatory->getType() !== $stored->getType()) {
300 300
 					$this->output->writeln(
301
-						'- updating type from ' . $stored->getType() . ' to '
301
+						'- updating type from '.$stored->getType().' to '
302 302
 						. $remoteSignatory->getType()
303 303
 					);
304 304
 					$this->remoteStreamService->update(
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
 				if ($remoteSignatory->getInstance() !== $stored->getInstance()) {
310 310
 					$this->output->writeln(
311
-						'- updating host from ' . $stored->getInstance() . ' to '
311
+						'- updating host from '.$stored->getInstance().' to '
312 312
 						. $remoteSignatory->getInstance()
313 313
 					);
314 314
 					$this->remoteStreamService->update(
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 				}
318 318
 				if ($remoteSignatory->getId() !== $stored->getId()) {
319 319
 					$this->output->writeln(
320
-						'- updating href/Id from ' . $stored->getId() . ' to '
320
+						'- updating href/Id from '.$stored->getId().' to '
321 321
 						. $remoteSignatory->getId()
322 322
 					);
323 323
 					$this->remoteStreamService->update($remoteSignatory, RemoteStreamService::UPDATE_HREF);
@@ -341,10 +341,10 @@  discard block
 block discarded – undo
341 341
 		$helper = $this->getHelper('question');
342 342
 
343 343
 		$this->output->writeln(
344
-			'The remote instance <info>' . $remoteSignatory->getInstance() . '</info> looks good.'
344
+			'The remote instance <info>'.$remoteSignatory->getInstance().'</info> looks good.'
345 345
 		);
346 346
 		$question = new ConfirmationQuestion(
347
-			'Would you like to identify this remote instance as \'<comment>' . $remoteSignatory->getType()
347
+			'Would you like to identify this remote instance as \'<comment>'.$remoteSignatory->getType()
348 348
 			. '</comment>\' using interface \'<comment>'
349 349
 			. InterfaceService::$LIST_IFACE[$remoteSignatory->getInterface()]
350 350
 			. '</comment>\' ? (y/N) ',
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 		$helper = $this->getHelper('question');
373 373
 
374 374
 		$this->output->writeln(
375
-			'The remote instance <info>' . $remoteSignatory->getInstance()
375
+			'The remote instance <info>'.$remoteSignatory->getInstance()
376 376
 			. '</info> is known but <error>its identity has changed.</error>'
377 377
 		);
378 378
 		$this->output->writeln(
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 	private function verifyGSInstances(): void {
435 435
 		$instances = $this->globalScaleService->getGlobalScaleInstances();
436 436
 		$known = array_map(
437
-			function (RemoteInstance $instance): string {
437
+			function(RemoteInstance $instance): string {
438 438
 				return $instance->getInstance();
439 439
 			}, $this->remoteRequest->getFromType(RemoteInstance::TYPE_GLOBALSCALE)
440 440
 		);
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 	 * @param string $instance
451 451
 	 */
452 452
 	private function syncGSInstance(string $instance): void {
453
-		$this->output->write('Adding <comment>' . $instance . '</comment>: ');
453
+		$this->output->write('Adding <comment>'.$instance.'</comment>: ');
454 454
 		if ($this->configService->isLocalInstance($instance)) {
455 455
 			$this->output->writeln('<comment>instance is local</comment>');
456 456
 			return;
@@ -465,8 +465,8 @@  discard block
 block discarded – undo
465 465
 			);
466 466
 			$this->output->writeln('<info>ok</info>');
467 467
 		} catch (Exception $e) {
468
-			$msg = ($e->getMessage() === '') ? '' : ' (' . $e->getMessage() . ')';
469
-			$this->output->writeln('<error>' . get_class($e) . $msg . '</error>');
468
+			$msg = ($e->getMessage() === '') ? '' : ' ('.$e->getMessage().')';
469
+			$this->output->writeln('<error>'.get_class($e).$msg.'</error>');
470 470
 		}
471 471
 	}
472 472
 
@@ -484,12 +484,12 @@  discard block
 block discarded – undo
484 484
 			try {
485 485
 				$current = $this->remoteStreamService->retrieveRemoteInstance($instance->getInstance());
486 486
 				if ($current->getUid(true) === $instance->getUid(true)) {
487
-					$currentUid = '<info>' . $current->getUid(true) . '</info>';
487
+					$currentUid = '<info>'.$current->getUid(true).'</info>';
488 488
 				} else {
489
-					$currentUid = '<error>' . $current->getUid(true) . '</error>';
489
+					$currentUid = '<error>'.$current->getUid(true).'</error>';
490 490
 				}
491 491
 			} catch (Exception $e) {
492
-				$currentUid = '<error>' . $e->getMessage() . '</error>';
492
+				$currentUid = '<error>'.$e->getMessage().'</error>';
493 493
 			}
494 494
 
495 495
 			$table->appendRow(
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 			}
517 517
 		}
518 518
 
519
-		throw new Exception('Unknown type: ' . implode(', ', RemoteInstance::$LIST_TYPE));
519
+		throw new Exception('Unknown type: '.implode(', ', RemoteInstance::$LIST_TYPE));
520 520
 	}
521 521
 
522 522
 	/**
@@ -529,6 +529,6 @@  discard block
 block discarded – undo
529 529
 			}
530 530
 		}
531 531
 
532
-		throw new Exception('Unknown interface: ' . implode(', ', InterfaceService::$LIST_IFACE));
532
+		throw new Exception('Unknown interface: '.implode(', ', InterfaceService::$LIST_IFACE));
533 533
 	}
534 534
 }
Please login to merge, or discard this patch.
lib/AppInfo/Application.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		// It seems that AccountManager use deprecated dispatcher, let's use a deprecated listener
172 172
 		$dispatcher = OC::$server->getEventDispatcher();
173 173
 		$dispatcher->addListener(
174
-			'OC\AccountManager::userUpdated', function (GenericEvent $event) {
174
+			'OC\AccountManager::userUpdated', function(GenericEvent $event) {
175 175
 				/** @var IUser $user */
176 176
 				$user = $event->getSubject();
177 177
 				/** @var DeprecatedListener $deprecatedListener */
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 		$eventDispatcher = $container->getEventDispatcher();
244 244
 		$eventDispatcher->addListener(
245 245
 			'OCA\Files::loadAdditionalScripts',
246
-			function () {
246
+			function() {
247 247
 				Util::addScript('circles', 'files/circles.files.app');
248 248
 				Util::addScript('circles', 'files/circles.files.list');
249 249
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 	public function registerFilesNavigation() {
260 260
 		$appManager = FilesApp::getNavigationManager();
261 261
 		$appManager->add(
262
-			function () {
262
+			function() {
263 263
 				$l = OC::$server->getL10N('circles');
264 264
 
265 265
 				return [
Please login to merge, or discard this patch.
lib/Api/v1/Circles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
 			try {
253 253
 				$circleService->getCircle($uniqueId); // checking current user have access to said circle
254 254
 				$files = array_map(
255
-					function (ShareWrapper $wrapper): int {
255
+					function(ShareWrapper $wrapper): int {
256 256
 						return $wrapper->getFileSource();
257 257
 					}, $shareWrapperService->getSharesToCircle($uniqueId)
258 258
 				);
Please login to merge, or discard this patch.
lib/Db/CoreQueryBuilder.php 1 patch
Spacing   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -399,8 +399,8 @@  discard block
 block discarded – undo
399 399
 			foreach (explode(' ', $circle->getDisplayName()) as $word) {
400 400
 				$andX->add(
401 401
 					$expr->iLike(
402
-						$this->getDefaultSelectAlias() . '.' . 'display_name',
403
-						$this->createNamedParameter('%' . $word . '%')
402
+						$this->getDefaultSelectAlias().'.'.'display_name',
403
+						$this->createNamedParameter('%'.$word.'%')
404 404
 					)
405 405
 				);
406 406
 			}
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 			$this->generateRemoteInstanceSelectAlias($aliasRemoteInstance)
432 432
 				 ->leftJoin(
433 433
 				 	$alias, CoreRequestBuilder::TABLE_REMOTE, $aliasRemoteInstance,
434
-				 	$expr->eq($alias . '.instance', $aliasRemoteInstance . '.instance')
434
+				 	$expr->eq($alias.'.instance', $aliasRemoteInstance.'.instance')
435 435
 				 );
436 436
 		} catch (RequestBuilderException $e) {
437 437
 		}
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 		$expr = $this->expr();
484 484
 		$this->leftJoin(
485 485
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_REMOTE, $aliasRemote,
486
-			$expr->eq($aliasRemote . '.instance', $this->createNamedParameter($remoteInstance->getInstance()))
486
+			$expr->eq($aliasRemote.'.instance', $this->createNamedParameter($remoteInstance->getInstance()))
487 487
 		);
488 488
 	}
489 489
 
@@ -511,12 +511,12 @@  discard block
 block discarded – undo
511 511
 		$this->leftJoin(
512 512
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteMember,
513 513
 			$expr->andX(
514
-				$expr->eq($aliasRemoteMember . '.circle_id', $aliasCircle . '.unique_id'),
514
+				$expr->eq($aliasRemoteMember.'.circle_id', $aliasCircle.'.unique_id'),
515 515
 				$expr->eq(
516
-					$aliasRemoteMember . '.instance',
516
+					$aliasRemoteMember.'.instance',
517 517
 					$this->createNamedParameter($remoteInstance->getInstance())
518 518
 				),
519
-				$expr->gte($aliasRemoteMember . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
519
+				$expr->gte($aliasRemoteMember.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
520 520
 			)
521 521
 		);
522 522
 	}
@@ -548,21 +548,21 @@  discard block
 block discarded – undo
548 548
 		$this->leftJoin(
549 549
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircle,
550 550
 			$expr->andX(
551
-				$expr->eq($aliasRemoteCircle . '.single_id', $aliasCircle . '.unique_id'),
552
-				$expr->emptyString($aliasRemoteCircle . '.instance'),
553
-				$expr->gte($aliasRemoteCircle . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
551
+				$expr->eq($aliasRemoteCircle.'.single_id', $aliasCircle.'.unique_id'),
552
+				$expr->emptyString($aliasRemoteCircle.'.instance'),
553
+				$expr->gte($aliasRemoteCircle.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER))
554 554
 			)
555 555
 		);
556 556
 		$this->leftJoin(
557 557
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircleOwner,
558 558
 			$expr->andX(
559
-				$expr->eq($aliasRemoteCircle . '.circle_id', $aliasRemoteCircleOwner . '.circle_id'),
559
+				$expr->eq($aliasRemoteCircle.'.circle_id', $aliasRemoteCircleOwner.'.circle_id'),
560 560
 				$expr->eq(
561
-					$aliasRemoteCircleOwner . '.instance',
561
+					$aliasRemoteCircleOwner.'.instance',
562 562
 					$this->createNamedParameter($remoteInstance->getInstance())
563 563
 				),
564 564
 				$expr->eq(
565
-					$aliasRemoteCircleOwner . '.level', $this->createNamedParameter(Member::LEVEL_OWNER)
565
+					$aliasRemoteCircleOwner.'.level', $this->createNamedParameter(Member::LEVEL_OWNER)
566 566
 				)
567 567
 			)
568 568
 		);
@@ -595,16 +595,16 @@  discard block
 block discarded – undo
595 595
 		$expr = $this->expr();
596 596
 		$orX = $expr->orX();
597 597
 		$orX->add(
598
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE))
598
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE))
599 599
 		);
600 600
 
601 601
 		$orExtOrPassive = $expr->orX();
602 602
 		$orExtOrPassive->add(
603
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
603
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL))
604 604
 		);
605 605
 		if (!$sensitive) {
606 606
 			$orExtOrPassive->add(
607
-				$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
607
+				$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
608 608
 			);
609 609
 		} else {
610 610
 			if ($this->getDefaultSelectAlias() === CoreQueryBuilder::MEMBER) {
@@ -613,8 +613,8 @@  discard block
 block discarded – undo
613 613
 		}
614 614
 
615 615
 		$orInstance = $expr->orX();
616
-		$orInstance->add($expr->isNotNull($aliasRemoteMember . '.instance'));
617
-		$orInstance->add($expr->isNotNull($aliasRemoteCircleOwner . '.instance'));
616
+		$orInstance->add($expr->isNotNull($aliasRemoteMember.'.instance'));
617
+		$orInstance->add($expr->isNotNull($aliasRemoteCircleOwner.'.instance'));
618 618
 
619 619
 		$andExternal = $expr->andX();
620 620
 		$andExternal->add($orExtOrPassive);
@@ -623,13 +623,13 @@  discard block
 block discarded – undo
623 623
 		$orExtOrTrusted = $expr->orX();
624 624
 		$orExtOrTrusted->add($andExternal);
625 625
 		$orExtOrTrusted->add(
626
-			$expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
626
+			$expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED))
627 627
 		);
628 628
 
629 629
 		$andTrusted = $expr->andX();
630 630
 		$andTrusted->add($orExtOrTrusted);
631 631
 		$andTrusted->add($this->exprLimitBitwise('config', Circle::CFG_FEDERATED, $aliasCircle));
632
-		$andTrusted->add($expr->emptyString($aliasOwner . '.instance'));
632
+		$andTrusted->add($expr->emptyString($aliasOwner.'.instance'));
633 633
 		$orX->add($andTrusted);
634 634
 
635 635
 		$this->andWhere($orX);
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 		}
657 657
 		$this->innerJoin(
658 658
 			$this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
659
-			$expr->eq($aliasMember . '.circle_id', $alias . '.unique_id')
659
+			$expr->eq($aliasMember.'.circle_id', $alias.'.unique_id')
660 660
 		);
661 661
 
662 662
 		$this->filterDirectMembership($aliasMember, $member);
@@ -681,12 +681,12 @@  discard block
 block discarded – undo
681 681
 			$aliasCircle,
682 682
 			'circles_membership',
683 683
 			$aliasMembership,
684
-			$this->expr()->eq($aliasCircle . '.unique_id', $aliasMembership . '.circle_id')
684
+			$this->expr()->eq($aliasCircle.'.unique_id', $aliasMembership.'.circle_id')
685 685
 		);
686 686
 
687 687
 		$this->andWhere(
688 688
 			$this->expr()->eq(
689
-				$aliasMembership . '.single_id',
689
+				$aliasMembership.'.single_id',
690 690
 				$this->createNamedParameter($federatedUser->getSingleId())
691 691
 			)
692 692
 		);
@@ -707,19 +707,19 @@  discard block
 block discarded – undo
707 707
 
708 708
 		if ($member->getUserId() !== '') {
709 709
 			$andX->add(
710
-				$expr->eq($aliasMember . '.user_id', $this->createNamedParameter($member->getUserId()))
710
+				$expr->eq($aliasMember.'.user_id', $this->createNamedParameter($member->getUserId()))
711 711
 			);
712 712
 		}
713 713
 
714 714
 		if ($member->getSingleId() !== '') {
715 715
 			$andX->add(
716
-				$expr->eq($aliasMember . '.single_id', $this->createNamedParameter($member->getSingleId()))
716
+				$expr->eq($aliasMember.'.single_id', $this->createNamedParameter($member->getSingleId()))
717 717
 			);
718 718
 		}
719 719
 
720 720
 		if ($member->getUserType() > 0) {
721 721
 			$andX->add(
722
-				$expr->eq($aliasMember . '.user_type', $this->createNamedParameter($member->getUserType()))
722
+				$expr->eq($aliasMember.'.user_type', $this->createNamedParameter($member->getUserType()))
723 723
 			);
724 724
 		}
725 725
 
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
 		if ($member->getLevel() > 0) {
729 729
 			$andX->add(
730 730
 				$expr->gte(
731
-					$aliasMember . '.level',
731
+					$aliasMember.'.level',
732 732
 					$this->createNamedParameter($member->getLevel(), IQueryBuilder::PARAM_INT)
733 733
 				)
734 734
 			);
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
 			$helperAlias,
770 770
 			CoreRequestBuilder::TABLE_CIRCLE,
771 771
 			$aliasCircle,
772
-			$expr->eq($aliasCircle . '.unique_id', $helperAlias . '.' . $field)
772
+			$expr->eq($aliasCircle.'.unique_id', $helperAlias.'.'.$field)
773 773
 		);
774 774
 
775 775
 		if (!is_null($initiator)) {
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 		$this->generateCircleSelectAlias($aliasInvitedBy)
801 801
 			 ->leftJoin(
802 802
 			 	$aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasInvitedBy,
803
-			 	$expr->eq($aliasMember . '.invited_by', $aliasInvitedBy . '.unique_id')
803
+			 	$expr->eq($aliasMember.'.invited_by', $aliasInvitedBy.'.unique_id')
804 804
 			 );
805 805
 
806 806
 		$this->leftJoinOwner($aliasInvitedBy);
@@ -831,7 +831,7 @@  discard block
 block discarded – undo
831 831
 		$this->generateCircleSelectAlias($aliasBasedOn)
832 832
 			 ->leftJoin(
833 833
 			 	$aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasBasedOn,
834
-			 	$expr->eq($aliasBasedOn . '.unique_id', $aliasMember . '.single_id')
834
+			 	$expr->eq($aliasBasedOn.'.unique_id', $aliasMember.'.single_id')
835 835
 			 );
836 836
 
837 837
 		if (!is_null($initiator)) {
@@ -864,9 +864,9 @@  discard block
 block discarded – undo
864 864
 			 ->leftJoin(
865 865
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
866 866
 			 	$expr->andX(
867
-			 		$expr->eq($aliasMember . '.circle_id', $alias . '.' . $field),
867
+			 		$expr->eq($aliasMember.'.circle_id', $alias.'.'.$field),
868 868
 			 		$expr->eq(
869
-			 			$aliasMember . '.level',
869
+			 			$aliasMember.'.level',
870 870
 			 			$this->createNamedParameter(Member::LEVEL_OWNER, self::PARAM_INT)
871 871
 			 		)
872 872
 			 	)
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
 
899 899
 		$expr = $this->expr();
900 900
 
901
-		$on = $expr->andX($expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field));
901
+		$on = $expr->andX($expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field));
902 902
 
903 903
 		// limit on membership level if requested
904 904
 		$minLevel = $probe->getMinimumLevel();
@@ -939,8 +939,8 @@  discard block
 block discarded – undo
939 939
 			 ->leftJoin(
940 940
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember,
941 941
 			 	$expr->andX(
942
-			 		$expr->eq($aliasMember . '.circle_id', $alias . '.' . $fieldCircleId),
943
-			 		$expr->eq($aliasMember . '.single_id', $alias . '.' . $fieldSingleId),
942
+			 		$expr->eq($aliasMember.'.circle_id', $alias.'.'.$fieldCircleId),
943
+			 		$expr->eq($aliasMember.'.single_id', $alias.'.'.$fieldSingleId),
944 944
 			 		$this->exprGt('level', Member::LEVEL_MEMBER, true, $aliasMember)
945 945
 			 	)
946 946
 			 );
@@ -972,7 +972,7 @@  discard block
 block discarded – undo
972 972
 
973 973
 		$this->leftJoin(
974 974
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership,
975
-			$expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field)
975
+			$expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field)
976 976
 		);
977 977
 
978 978
 //		if (!$this->getBool('getData', $options, false)) {
@@ -986,8 +986,8 @@  discard block
 block discarded – undo
986 986
 			 ->leftJoin(
987 987
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy,
988 988
 			 	$expr->andX(
989
-			 		$expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id'),
990
-			 		$expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id')
989
+			 		$expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id'),
990
+			 		$expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id')
991 991
 			 	)
992 992
 			 );
993 993
 
@@ -1004,12 +1004,12 @@  discard block
 block discarded – undo
1004 1004
 		$aliasUpstreamMembership = $this->generateAlias($alias, self::UPSTREAM_MEMBERSHIPS, $options);
1005 1005
 		$this->leftJoin(
1006 1006
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasUpstreamMembership,
1007
-			$expr->eq($aliasUpstreamMembership . '.single_id', $this->createNamedParameter($singleId))
1007
+			$expr->eq($aliasUpstreamMembership.'.single_id', $this->createNamedParameter($singleId))
1008 1008
 		);
1009 1009
 
1010 1010
 		$orX = $expr->orX(
1011
-			$expr->eq($aliasUpstreamMembership . '.circle_id', $alias . '.' . $field),
1012
-			$expr->eq($alias . '.' . $field, $this->createNamedParameter($singleId))
1011
+			$expr->eq($aliasUpstreamMembership.'.circle_id', $alias.'.'.$field),
1012
+			$expr->eq($alias.'.'.$field, $this->createNamedParameter($singleId))
1013 1013
 		);
1014 1014
 
1015 1015
 		$this->andWhere($orX);
@@ -1030,11 +1030,11 @@  discard block
 block discarded – undo
1030 1030
 
1031 1031
 		$expr = $this->expr();
1032 1032
 		$aliasMembership = $this->generateAlias($alias, self::MEMBERSHIPS);
1033
-		$this->andWhere($expr->eq($aliasMembership . '.circle_id', $this->createNamedParameter($singleId)));
1033
+		$this->andWhere($expr->eq($aliasMembership.'.circle_id', $this->createNamedParameter($singleId)));
1034 1034
 		if ($level > 1) {
1035 1035
 			$this->andWhere(
1036 1036
 				$expr->gte(
1037
-					$aliasMembership . '.level',
1037
+					$aliasMembership.'.level',
1038 1038
 					$this->createNamedParameter($level, IQueryBuilder::PARAM_INT)
1039 1039
 				)
1040 1040
 			);
@@ -1062,8 +1062,8 @@  discard block
 block discarded – undo
1062 1062
 		$this->leftJoin(
1063 1063
 			$alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership,
1064 1064
 			$expr->andX(
1065
-				$expr->eq($aliasMembership . '.inheritance_last', $alias . '.' . $field),
1066
-				$expr->eq($aliasMembership . '.single_id', $alias . '.single_id')
1065
+				$expr->eq($aliasMembership.'.inheritance_last', $alias.'.'.$field),
1066
+				$expr->eq($aliasMembership.'.single_id', $alias.'.single_id')
1067 1067
 			)
1068 1068
 		);
1069 1069
 
@@ -1076,8 +1076,8 @@  discard block
 block discarded – undo
1076 1076
 			 ->leftJoin(
1077 1077
 			 	$aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritanceFrom,
1078 1078
 			 	$expr->andX(
1079
-			 		$expr->eq($aliasMembership . '.circle_id', $aliasInheritanceFrom . '.circle_id'),
1080
-			 		$expr->eq($aliasMembership . '.inheritance_first', $aliasInheritanceFrom . '.single_id')
1079
+			 		$expr->eq($aliasMembership.'.circle_id', $aliasInheritanceFrom.'.circle_id'),
1080
+			 		$expr->eq($aliasMembership.'.inheritance_first', $aliasInheritanceFrom.'.single_id')
1081 1081
 			 	)
1082 1082
 			 );
1083 1083
 	}
@@ -1117,7 +1117,7 @@  discard block
 block discarded – undo
1117 1117
 
1118 1118
 		$this->leftJoin(
1119 1119
 			$alias, CoreRequestBuilder::TABLE_TOKEN, $aliasShareToken,
1120
-			$expr->eq($aliasShareToken . '.share_id', $alias . '.' . $field)
1120
+			$expr->eq($aliasShareToken.'.share_id', $alias.'.'.$field)
1121 1121
 		);
1122 1122
 	}
1123 1123
 
@@ -1159,14 +1159,14 @@  discard block
 block discarded – undo
1159 1159
 		try {
1160 1160
 			$aliasConfig = $this->generateAlias($alias, self::CONFIG, $options);
1161 1161
 			$this->selectAlias(
1162
-				$aliasConfig . '.config',
1163
-				(($alias !== $this->getDefaultSelectAlias()) ? $alias . '_' : '') . 'circle_config'
1162
+				$aliasConfig.'.config',
1163
+				(($alias !== $this->getDefaultSelectAlias()) ? $alias.'_' : '').'circle_config'
1164 1164
 			);
1165 1165
 			$this->leftJoin(
1166 1166
 				$alias,
1167 1167
 				CoreRequestBuilder::TABLE_CIRCLE,
1168 1168
 				$aliasConfig,
1169
-				$expr->eq($alias . '.circle_id', $aliasConfig . '.unique_id')
1169
+				$expr->eq($alias.'.circle_id', $aliasConfig.'.unique_id')
1170 1170
 			);
1171 1171
 		} catch (RequestBuilderException $e) {
1172 1172
 		}
@@ -1204,7 +1204,7 @@  discard block
 block discarded – undo
1204 1204
 			$aliasMembership,
1205 1205
 			$expr->andX(
1206 1206
 				$this->exprLimit('single_id', $initiator->getSingleId(), $aliasMembership),
1207
-				$expr->eq($aliasMembership . '.circle_id', $helperAlias . '.' . $field)
1207
+				$expr->eq($aliasMembership.'.circle_id', $helperAlias.'.'.$field)
1208 1208
 			)
1209 1209
 		);
1210 1210
 
@@ -1223,11 +1223,11 @@  discard block
 block discarded – undo
1223 1223
 			$aliasMembershipCircle = $this->generateAlias($aliasMembership, self::CONFIG, $options);
1224 1224
 			$orXMembershipCircle = $expr->orX();
1225 1225
 			array_map(
1226
-				function (string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) {
1226
+				function(string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) {
1227 1227
 					$orXMembershipCircle->add(
1228 1228
 						$this->expr()->eq(
1229
-							$alias . '.circle_id',
1230
-							$aliasMembershipCircle . '.unique_id'
1229
+							$alias.'.circle_id',
1230
+							$aliasMembershipCircle.'.unique_id'
1231 1231
 						)
1232 1232
 					);
1233 1233
 				},
@@ -1259,7 +1259,7 @@  discard block
 block discarded – undo
1259 1259
 					 	$aliasDirectInitiator,
1260 1260
 					 	$expr->andX(
1261 1261
 					 		$this->exprLimit('single_id', $initiator->getSingleId(), $aliasDirectInitiator),
1262
-					 		$expr->eq($aliasDirectInitiator . '.circle_id', $helperAlias . '.' . $field)
1262
+					 		$expr->eq($aliasDirectInitiator.'.circle_id', $helperAlias.'.'.$field)
1263 1263
 					 	)
1264 1264
 					 );
1265 1265
 			} catch (RequestBuilderException $e) {
@@ -1273,8 +1273,8 @@  discard block
 block discarded – undo
1273 1273
 			$this->leftJoin(
1274 1274
 				$aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator,
1275 1275
 				$expr->andX(
1276
-					$expr->eq($aliasMembership . '.inheritance_first', $aliasInitiator . '.single_id'),
1277
-					$expr->eq($aliasMembership . '.circle_id', $aliasInitiator . '.circle_id')
1276
+					$expr->eq($aliasMembership.'.inheritance_first', $aliasInitiator.'.single_id'),
1277
+					$expr->eq($aliasMembership.'.circle_id', $aliasInitiator.'.circle_id')
1278 1278
 				)
1279 1279
 			);
1280 1280
 
@@ -1282,8 +1282,8 @@  discard block
 block discarded – undo
1282 1282
 			$this->leftJoin(
1283 1283
 				$aliasInitiator, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy,
1284 1284
 				$expr->andX(
1285
-					$expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id'),
1286
-					$expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id')
1285
+					$expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id'),
1286
+					$expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id')
1287 1287
 				)
1288 1288
 			);
1289 1289
 
@@ -1328,7 +1328,7 @@  discard block
 block discarded – undo
1328 1328
 			 ->leftJoin(
1329 1329
 			 	$alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator,
1330 1330
 			 	$expr->andX(
1331
-			 		$expr->eq($aliasInitiator . '.circle_id', $helperAlias . '.' . $field),
1331
+			 		$expr->eq($aliasInitiator.'.circle_id', $helperAlias.'.'.$field),
1332 1332
 			 		$this->exprLimitInt('level', Member::LEVEL_OWNER, $aliasInitiator)
1333 1333
 			 	)
1334 1334
 			 );
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
 			$orX->add(
1365 1365
 				$expr->andX(
1366 1366
 					$this->exprLimitBitwise('config', Circle::CFG_PERSONAL, $aliasMembershipCircle),
1367
-					$expr->eq($aliasMembership . '.level', $this->createNamedParameter(Member::LEVEL_OWNER))
1367
+					$expr->eq($aliasMembership.'.level', $this->createNamedParameter(Member::LEVEL_OWNER))
1368 1368
 				)
1369 1369
 			);
1370 1370
 		}
@@ -1374,10 +1374,10 @@  discard block
 block discarded – undo
1374 1374
 		$orXLevelCheck = $expr->orX();
1375 1375
 
1376 1376
 		array_map(
1377
-			function (string $alias) use ($orXLevelCheck, $minimumLevel) {
1377
+			function(string $alias) use ($orXLevelCheck, $minimumLevel) {
1378 1378
 				$orXLevelCheck->add(
1379 1379
 					$this->expr()->gte(
1380
-						$alias . '.level',
1380
+						$alias.'.level',
1381 1381
 						$this->createNamedParameter($minimumLevel)
1382 1382
 					)
1383 1383
 				);
@@ -1467,21 +1467,21 @@  discard block
 block discarded – undo
1467 1467
 		$expr = $this->expr();
1468 1468
 		$andPassive = $expr->andX();
1469 1469
 		$andPassive->add(
1470
-			$expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
1470
+			$expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE))
1471 1471
 		);
1472 1472
 
1473 1473
 		$orMemberOrLevel = $expr->orX();
1474 1474
 		$orMemberOrLevel->add(
1475
-			$expr->eq($this->getDefaultSelectAlias() . '.instance', $alias . '.instance')
1475
+			$expr->eq($this->getDefaultSelectAlias().'.instance', $alias.'.instance')
1476 1476
 		);
1477 1477
 		// TODO: do we need this ? (display members from the local instance)
1478 1478
 		$orMemberOrLevel->add(
1479
-			$expr->emptyString($this->getDefaultSelectAlias() . '.instance')
1479
+			$expr->emptyString($this->getDefaultSelectAlias().'.instance')
1480 1480
 		);
1481 1481
 
1482 1482
 		$orMemberOrLevel->add(
1483 1483
 			$expr->eq(
1484
-				$this->getDefaultSelectAlias() . '.level',
1484
+				$this->getDefaultSelectAlias().'.level',
1485 1485
 				$this->createNamedParameter(Member::LEVEL_OWNER)
1486 1486
 			)
1487 1487
 		);
@@ -1518,11 +1518,11 @@  discard block
 block discarded – undo
1518 1518
 			 )
1519 1519
 			 ->leftJoin(
1520 1520
 			 	$aliasShare, CoreRequestBuilder::TABLE_FILE_CACHE, $aliasFileCache,
1521
-			 	$expr->eq($aliasShare . '.file_source', $aliasFileCache . '.fileid')
1521
+			 	$expr->eq($aliasShare.'.file_source', $aliasFileCache.'.fileid')
1522 1522
 			 )
1523 1523
 			 ->leftJoin(
1524 1524
 			 	$aliasFileCache, CoreRequestBuilder::TABLE_STORAGES, $aliasStorages,
1525
-			 	$expr->eq($aliasFileCache . '.storage', $aliasStorages . '.numeric_id')
1525
+			 	$expr->eq($aliasFileCache.'.storage', $aliasStorages.'.numeric_id')
1526 1526
 			 );
1527 1527
 	}
1528 1528
 
@@ -1544,8 +1544,8 @@  discard block
 block discarded – undo
1544 1544
 		$this->leftJoin(
1545 1545
 			$aliasShareMemberships, CoreRequestBuilder::TABLE_SHARE, $aliasShareChild,
1546 1546
 			$expr->andX(
1547
-				$expr->eq($aliasShareChild . '.parent', $aliasShare . '.id'),
1548
-				$expr->eq($aliasShareChild . '.share_with', $aliasShareMemberships . '.single_id')
1547
+				$expr->eq($aliasShareChild.'.parent', $aliasShare.'.id'),
1548
+				$expr->eq($aliasShareChild.'.share_with', $aliasShareMemberships.'.single_id')
1549 1549
 			)
1550 1550
 		);
1551 1551
 
@@ -1595,13 +1595,13 @@  discard block
 block discarded – undo
1595 1595
 		$this->leftJoin(
1596 1596
 			$aliasMountMemberships, CoreRequestBuilder::TABLE_MOUNTPOINT, $aliasMountpoint,
1597 1597
 			$expr->andX(
1598
-				$expr->eq($aliasMountpoint . '.mount_id', $aliasMount . '.mount_id'),
1599
-				$expr->eq($aliasMountpoint . '.single_id', $aliasMountMemberships . '.single_id')
1598
+				$expr->eq($aliasMountpoint.'.mount_id', $aliasMount.'.mount_id'),
1599
+				$expr->eq($aliasMountpoint.'.single_id', $aliasMountMemberships.'.single_id')
1600 1600
 			)
1601 1601
 		);
1602 1602
 
1603
-		$this->selectAlias($aliasMountpoint . '.mountpoint', $aliasMountpoint . '_mountpoint');
1604
-		$this->selectAlias($aliasMountpoint . '.mountpoint_hash', $aliasMountpoint . '_mountpoint_hash');
1603
+		$this->selectAlias($aliasMountpoint.'.mountpoint', $aliasMountpoint.'_mountpoint');
1604
+		$this->selectAlias($aliasMountpoint.'.mountpoint_hash', $aliasMountpoint.'_mountpoint_hash');
1605 1605
 	}
1606 1606
 
1607 1607
 
@@ -1709,10 +1709,10 @@  discard block
 block discarded – undo
1709 1709
 	 */
1710 1710
 	public function generateAlias(string $base, string $extension, ?array &$options = []): string {
1711 1711
 		$search = str_replace('_', '.', $base);
1712
-		$path = $search . '.' . $extension;
1712
+		$path = $search.'.'.$extension;
1713 1713
 		if (!$this->validKey($path, $this->getSqlPath())
1714 1714
 			&& !in_array($extension, $this->getArray($search, $this->getSqlPath()))) {
1715
-			throw new RequestBuilderException($extension . ' not found in ' . $search);
1715
+			throw new RequestBuilderException($extension.' not found in '.$search);
1716 1716
 		}
1717 1717
 
1718 1718
 		if (!is_array($options)) {
@@ -1721,15 +1721,15 @@  discard block
 block discarded – undo
1721 1721
 
1722 1722
 		$optionPath = '';
1723 1723
 		foreach (explode('.', $path) as $p) {
1724
-			$optionPath = trim($optionPath . '.' . $p, '.');
1724
+			$optionPath = trim($optionPath.'.'.$p, '.');
1725 1725
 			$options = array_merge(
1726 1726
 				$options,
1727
-				$this->getArray($optionPath . '.' . self::OPTIONS, $this->getSqlPath()),
1728
-				$this->getArray($optionPath . '.' . self::OPTIONS, $this->options)
1727
+				$this->getArray($optionPath.'.'.self::OPTIONS, $this->getSqlPath()),
1728
+				$this->getArray($optionPath.'.'.self::OPTIONS, $this->options)
1729 1729
 			);
1730 1730
 		}
1731 1731
 
1732
-		return $base . '_' . $extension;
1732
+		return $base.'_'.$extension;
1733 1733
 	}
1734 1734
 
1735 1735
 
@@ -1749,7 +1749,7 @@  discard block
 block discarded – undo
1749 1749
 			} else {
1750 1750
 				$k = $arr;
1751 1751
 			}
1752
-			$path[$k] = $prefix . '_' . $k . '_';
1752
+			$path[$k] = $prefix.'_'.$k.'_';
1753 1753
 		}
1754 1754
 
1755 1755
 		return $path;
Please login to merge, or discard this patch.