@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | */ |
| 216 | 216 | public function limitToCreation(int $delay = 0): self { |
| 217 | 217 | $date = new DateTime('now'); |
| 218 | - $date->sub(new DateInterval('PT' . $delay . 'M')); |
|
| 218 | + $date->sub(new DateInterval('PT'.$delay.'M')); |
|
| 219 | 219 | |
| 220 | 220 | $this->limitToDBFieldDateTime('creation', $date, true); |
| 221 | 221 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | $expr = $this->expr(); |
| 233 | 233 | $pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias() |
| 234 | 234 | . '.' : ''; |
| 235 | - $field = $pf . $field; |
|
| 235 | + $field = $pf.$field; |
|
| 236 | 236 | |
| 237 | 237 | $orX = $expr->orX(); |
| 238 | 238 | $orX->add( |
@@ -262,8 +262,8 @@ discard block |
||
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | $expr = $this->expr(); |
| 265 | - $pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias() . '.' : ''; |
|
| 266 | - $field = $pf . $field; |
|
| 265 | + $pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias().'.' : ''; |
|
| 266 | + $field = $pf.$field; |
|
| 267 | 267 | |
| 268 | 268 | $orX = $expr->orX(); |
| 269 | 269 | $orX->add( |
@@ -281,8 +281,8 @@ discard block |
||
| 281 | 281 | public function searchInDBField(string $field, string $value): void { |
| 282 | 282 | $expr = $this->expr(); |
| 283 | 283 | |
| 284 | - $pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias() . '.' : ''; |
|
| 285 | - $field = $pf . $field; |
|
| 284 | + $pf = ($this->getType() === DBALQueryBuilder::SELECT) ? $this->getDefaultSelectAlias().'.' : ''; |
|
| 285 | + $field = $pf.$field; |
|
| 286 | 286 | |
| 287 | 287 | $this->andWhere($expr->iLike($field, $this->createNamedParameter($value))); |
| 288 | 288 | } |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | */ |
| 405 | 405 | public function exprLike(string $field, string $value, string $alias = '', bool $cs = true): string { |
| 406 | 406 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 407 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 407 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | $expr = $this->expr(); |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | |
| 418 | 418 | public function exprLimit(string $field, string $value, string $alias = '', bool $cs = true): string { |
| 419 | 419 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 420 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 420 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | $expr = $this->expr(); |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | |
| 436 | 436 | public function exprLimitInt(string $field, int $value, string $alias = ''): string { |
| 437 | 437 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 438 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 438 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | $expr = $this->expr(); |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | */ |
| 454 | 454 | public function exprLimitBool(string $field, bool $value, string $alias = ''): string { |
| 455 | 455 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 456 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 456 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 457 | 457 | } |
| 458 | 458 | |
| 459 | 459 | $expr = $this->expr(); |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | string $alias = '' |
| 475 | 475 | ): ICompositeExpression { |
| 476 | 476 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 477 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 477 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | $expr = $this->expr(); |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | string $alias = '' |
| 501 | 501 | ): ICompositeExpression { |
| 502 | 502 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 503 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 503 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 504 | 504 | } |
| 505 | 505 | |
| 506 | 506 | $expr = $this->expr(); |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | bool $cs = true |
| 530 | 530 | ): ICompositeExpression { |
| 531 | 531 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 532 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 532 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | $andX = $this->expr()->andX(); |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | */ |
| 555 | 555 | public function exprLimitInArray(string $field, array $values, string $alias = ''): string { |
| 556 | 556 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 557 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 557 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 558 | 558 | } |
| 559 | 559 | |
| 560 | 560 | $expr = $this->expr(); |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | */ |
| 573 | 573 | public function exprLimitBitwise(string $field, int $flag, string $alias = ''): string { |
| 574 | 574 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 575 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 575 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 576 | 576 | } |
| 577 | 577 | |
| 578 | 578 | $expr = $this->expr(); |
@@ -594,7 +594,7 @@ discard block |
||
| 594 | 594 | */ |
| 595 | 595 | public function exprLt(string $field, int $value, bool $lte = false, string $alias = ''): string { |
| 596 | 596 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 597 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 597 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 598 | 598 | } |
| 599 | 599 | |
| 600 | 600 | $expr = $this->expr(); |
@@ -616,7 +616,7 @@ discard block |
||
| 616 | 616 | */ |
| 617 | 617 | public function exprGt(string $field, int $value, bool $gte = false, string $alias = ''): string { |
| 618 | 618 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 619 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 619 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 620 | 620 | } |
| 621 | 621 | |
| 622 | 622 | $expr = $this->expr(); |
@@ -725,7 +725,7 @@ discard block |
||
| 725 | 725 | */ |
| 726 | 726 | public function exprUnlike(string $field, string $value, string $alias = '', bool $cs = true): string { |
| 727 | 727 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 728 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 728 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 729 | 729 | } |
| 730 | 730 | |
| 731 | 731 | $expr = $this->expr(); |
@@ -749,7 +749,7 @@ discard block |
||
| 749 | 749 | */ |
| 750 | 750 | public function exprFilter(string $field, string $value, string $alias = '', bool $cs = true): string { |
| 751 | 751 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 752 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 752 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 753 | 753 | } |
| 754 | 754 | |
| 755 | 755 | $expr = $this->expr(); |
@@ -775,7 +775,7 @@ discard block |
||
| 775 | 775 | */ |
| 776 | 776 | public function exprFilterInt(string $field, int $value, string $alias = ''): string { |
| 777 | 777 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 778 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 778 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 779 | 779 | } |
| 780 | 780 | |
| 781 | 781 | $expr = $this->expr(); |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | */ |
| 794 | 794 | public function exprFilterBool(string $field, bool $value, string $alias = ''): string { |
| 795 | 795 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 796 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 796 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 797 | 797 | } |
| 798 | 798 | |
| 799 | 799 | $expr = $this->expr(); |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | string $alias = '' |
| 815 | 815 | ): ICompositeExpression { |
| 816 | 816 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 817 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 817 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 818 | 818 | } |
| 819 | 819 | |
| 820 | 820 | $expr = $this->expr(); |
@@ -840,7 +840,7 @@ discard block |
||
| 840 | 840 | string $alias = '' |
| 841 | 841 | ): ICompositeExpression { |
| 842 | 842 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 843 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 843 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 844 | 844 | } |
| 845 | 845 | |
| 846 | 846 | $expr = $this->expr(); |
@@ -869,7 +869,7 @@ discard block |
||
| 869 | 869 | bool $cs = true |
| 870 | 870 | ): ICompositeExpression { |
| 871 | 871 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 872 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 872 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 873 | 873 | } |
| 874 | 874 | |
| 875 | 875 | $orX = $this->expr()->orX(); |
@@ -894,7 +894,7 @@ discard block |
||
| 894 | 894 | */ |
| 895 | 895 | public function exprFilterInArray(string $field, array $values, string $alias = ''): string { |
| 896 | 896 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 897 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 897 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 898 | 898 | } |
| 899 | 899 | |
| 900 | 900 | $expr = $this->expr(); |
@@ -912,7 +912,7 @@ discard block |
||
| 912 | 912 | */ |
| 913 | 913 | public function exprFilterBitwise(string $field, int $flag, string $alias = ''): string { |
| 914 | 914 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
| 915 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
| 915 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
| 916 | 916 | } |
| 917 | 917 | |
| 918 | 918 | $expr = $this->expr(); |
@@ -1073,12 +1073,12 @@ discard block |
||
| 1073 | 1073 | string $alias = '' |
| 1074 | 1074 | ): self { |
| 1075 | 1075 | $selectFields = array_map( |
| 1076 | - function (string $item) use ($alias) { |
|
| 1076 | + function(string $item) use ($alias) { |
|
| 1077 | 1077 | if ($alias === '') { |
| 1078 | 1078 | return $item; |
| 1079 | 1079 | } |
| 1080 | 1080 | |
| 1081 | - return $alias . '.' . $item; |
|
| 1081 | + return $alias.'.'.$item; |
|
| 1082 | 1082 | }, $fields |
| 1083 | 1083 | ); |
| 1084 | 1084 | |
@@ -1104,13 +1104,13 @@ discard block |
||
| 1104 | 1104 | string $prefix, |
| 1105 | 1105 | array $default = [] |
| 1106 | 1106 | ): self { |
| 1107 | - $prefix = trim($prefix) . '_'; |
|
| 1107 | + $prefix = trim($prefix).'_'; |
|
| 1108 | 1108 | foreach ($default as $k => $v) { |
| 1109 | - $this->addDefaultValue($prefix . $k, (string)$v); |
|
| 1109 | + $this->addDefaultValue($prefix.$k, (string)$v); |
|
| 1110 | 1110 | } |
| 1111 | 1111 | |
| 1112 | 1112 | foreach ($fields as $field) { |
| 1113 | - $this->selectAlias($alias . '.' . $field, $prefix . $field); |
|
| 1113 | + $this->selectAlias($alias.'.'.$field, $prefix.$field); |
|
| 1114 | 1114 | } |
| 1115 | 1115 | |
| 1116 | 1116 | return $this; |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * @throws SingleCircleNotFoundException |
| 247 | 247 | */ |
| 248 | 248 | public function syncNextcloudUser(string $userId): FederatedUser { |
| 249 | - $this->outputService->output('Syncing Nextcloud Account \'' . $userId . '\'', true); |
|
| 249 | + $this->outputService->output('Syncing Nextcloud Account \''.$userId.'\'', true); |
|
| 250 | 250 | |
| 251 | 251 | return $this->federatedUserService->getLocalFederatedUser($userId); |
| 252 | 252 | } |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * @throws RequestBuilderException |
| 291 | 291 | */ |
| 292 | 292 | public function syncNextcloudGroup(string $groupId): Circle { |
| 293 | - $this->outputService->output('Syncing Nextcloud Group \'' . $groupId . '\'', true); |
|
| 293 | + $this->outputService->output('Syncing Nextcloud Group \''.$groupId.'\'', true); |
|
| 294 | 294 | |
| 295 | 295 | $circle = $this->federatedUserService->getGroupCircle($groupId); |
| 296 | 296 | $group = $this->groupManager->get($groupId); |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | */ |
| 364 | 364 | public function groupDeleted(string $groupId): void { |
| 365 | 365 | $circle = new Circle(); |
| 366 | - $circle->setName('group:' . $groupId) |
|
| 366 | + $circle->setName('group:'.$groupId) |
|
| 367 | 367 | ->setConfig(Circle::CFG_SYSTEM | Circle::CFG_NO_OWNER | Circle::CFG_HIDDEN) |
| 368 | 368 | ->setSource(Member::TYPE_GROUP); |
| 369 | 369 | |
@@ -580,7 +580,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -98,7 +98,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -396,8 +396,8 @@ discard block |
||
| 396 | 396 | foreach (explode(' ', $circle->getDisplayName()) as $word) { |
| 397 | 397 | $andX->add( |
| 398 | 398 | $expr->iLike( |
| 399 | - $this->getDefaultSelectAlias() . '.' . 'display_name', |
|
| 400 | - $this->createNamedParameter('%' . $word . '%') |
|
| 399 | + $this->getDefaultSelectAlias().'.'.'display_name', |
|
| 400 | + $this->createNamedParameter('%'.$word.'%') |
|
| 401 | 401 | ) |
| 402 | 402 | ); |
| 403 | 403 | } |
@@ -408,8 +408,8 @@ discard block |
||
| 408 | 408 | foreach (explode(' ', $circle->getDescription()) as $word) { |
| 409 | 409 | $orDescription->add( |
| 410 | 410 | $expr->iLike( |
| 411 | - $this->getDefaultSelectAlias() . '.' . 'description', |
|
| 412 | - $this->createNamedParameter('%' . $word . '%') |
|
| 411 | + $this->getDefaultSelectAlias().'.'.'description', |
|
| 412 | + $this->createNamedParameter('%'.$word.'%') |
|
| 413 | 413 | ) |
| 414 | 414 | ); |
| 415 | 415 | } |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | $this->generateRemoteInstanceSelectAlias($aliasRemoteInstance) |
| 440 | 440 | ->leftJoin( |
| 441 | 441 | $alias, CoreRequestBuilder::TABLE_REMOTE, $aliasRemoteInstance, |
| 442 | - $expr->eq($alias . '.instance', $aliasRemoteInstance . '.instance') |
|
| 442 | + $expr->eq($alias.'.instance', $aliasRemoteInstance.'.instance') |
|
| 443 | 443 | ); |
| 444 | 444 | } catch (RequestBuilderException $e) { |
| 445 | 445 | } |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | $expr = $this->expr(); |
| 492 | 492 | $this->leftJoin( |
| 493 | 493 | $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_REMOTE, $aliasRemote, |
| 494 | - $expr->eq($aliasRemote . '.instance', $this->createNamedParameter($remoteInstance->getInstance())) |
|
| 494 | + $expr->eq($aliasRemote.'.instance', $this->createNamedParameter($remoteInstance->getInstance())) |
|
| 495 | 495 | ); |
| 496 | 496 | } |
| 497 | 497 | |
@@ -519,12 +519,12 @@ discard block |
||
| 519 | 519 | $this->leftJoin( |
| 520 | 520 | $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteMember, |
| 521 | 521 | $expr->andX( |
| 522 | - $expr->eq($aliasRemoteMember . '.circle_id', $aliasCircle . '.unique_id'), |
|
| 522 | + $expr->eq($aliasRemoteMember.'.circle_id', $aliasCircle.'.unique_id'), |
|
| 523 | 523 | $expr->eq( |
| 524 | - $aliasRemoteMember . '.instance', |
|
| 524 | + $aliasRemoteMember.'.instance', |
|
| 525 | 525 | $this->createNamedParameter($remoteInstance->getInstance()) |
| 526 | 526 | ), |
| 527 | - $expr->gte($aliasRemoteMember . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER)) |
|
| 527 | + $expr->gte($aliasRemoteMember.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER)) |
|
| 528 | 528 | ) |
| 529 | 529 | ); |
| 530 | 530 | } |
@@ -556,21 +556,21 @@ discard block |
||
| 556 | 556 | $this->leftJoin( |
| 557 | 557 | $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircle, |
| 558 | 558 | $expr->andX( |
| 559 | - $expr->eq($aliasRemoteCircle . '.single_id', $aliasCircle . '.unique_id'), |
|
| 560 | - $expr->emptyString($aliasRemoteCircle . '.instance'), |
|
| 561 | - $expr->gte($aliasRemoteCircle . '.level', $this->createNamedParameter(Member::LEVEL_MEMBER)) |
|
| 559 | + $expr->eq($aliasRemoteCircle.'.single_id', $aliasCircle.'.unique_id'), |
|
| 560 | + $expr->emptyString($aliasRemoteCircle.'.instance'), |
|
| 561 | + $expr->gte($aliasRemoteCircle.'.level', $this->createNamedParameter(Member::LEVEL_MEMBER)) |
|
| 562 | 562 | ) |
| 563 | 563 | ); |
| 564 | 564 | $this->leftJoin( |
| 565 | 565 | $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasRemoteCircleOwner, |
| 566 | 566 | $expr->andX( |
| 567 | - $expr->eq($aliasRemoteCircle . '.circle_id', $aliasRemoteCircleOwner . '.circle_id'), |
|
| 567 | + $expr->eq($aliasRemoteCircle.'.circle_id', $aliasRemoteCircleOwner.'.circle_id'), |
|
| 568 | 568 | $expr->eq( |
| 569 | - $aliasRemoteCircleOwner . '.instance', |
|
| 569 | + $aliasRemoteCircleOwner.'.instance', |
|
| 570 | 570 | $this->createNamedParameter($remoteInstance->getInstance()) |
| 571 | 571 | ), |
| 572 | 572 | $expr->eq( |
| 573 | - $aliasRemoteCircleOwner . '.level', $this->createNamedParameter(Member::LEVEL_OWNER) |
|
| 573 | + $aliasRemoteCircleOwner.'.level', $this->createNamedParameter(Member::LEVEL_OWNER) |
|
| 574 | 574 | ) |
| 575 | 575 | ) |
| 576 | 576 | ); |
@@ -603,16 +603,16 @@ discard block |
||
| 603 | 603 | $expr = $this->expr(); |
| 604 | 604 | $orX = $expr->orX(); |
| 605 | 605 | $orX->add( |
| 606 | - $expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE)) |
|
| 606 | + $expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_GLOBALSCALE)) |
|
| 607 | 607 | ); |
| 608 | 608 | |
| 609 | 609 | $orExtOrPassive = $expr->orX(); |
| 610 | 610 | $orExtOrPassive->add( |
| 611 | - $expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL)) |
|
| 611 | + $expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_EXTERNAL)) |
|
| 612 | 612 | ); |
| 613 | 613 | if (!$sensitive) { |
| 614 | 614 | $orExtOrPassive->add( |
| 615 | - $expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE)) |
|
| 615 | + $expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE)) |
|
| 616 | 616 | ); |
| 617 | 617 | } else { |
| 618 | 618 | if ($this->getDefaultSelectAlias() === CoreQueryBuilder::MEMBER) { |
@@ -621,8 +621,8 @@ discard block |
||
| 621 | 621 | } |
| 622 | 622 | |
| 623 | 623 | $orInstance = $expr->orX(); |
| 624 | - $orInstance->add($expr->isNotNull($aliasRemoteMember . '.instance')); |
|
| 625 | - $orInstance->add($expr->isNotNull($aliasRemoteCircleOwner . '.instance')); |
|
| 624 | + $orInstance->add($expr->isNotNull($aliasRemoteMember.'.instance')); |
|
| 625 | + $orInstance->add($expr->isNotNull($aliasRemoteCircleOwner.'.instance')); |
|
| 626 | 626 | |
| 627 | 627 | $andExternal = $expr->andX(); |
| 628 | 628 | $andExternal->add($orExtOrPassive); |
@@ -631,13 +631,13 @@ discard block |
||
| 631 | 631 | $orExtOrTrusted = $expr->orX(); |
| 632 | 632 | $orExtOrTrusted->add($andExternal); |
| 633 | 633 | $orExtOrTrusted->add( |
| 634 | - $expr->eq($aliasRemote . '.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED)) |
|
| 634 | + $expr->eq($aliasRemote.'.type', $this->createNamedParameter(RemoteInstance::TYPE_TRUSTED)) |
|
| 635 | 635 | ); |
| 636 | 636 | |
| 637 | 637 | $andTrusted = $expr->andX(); |
| 638 | 638 | $andTrusted->add($orExtOrTrusted); |
| 639 | 639 | $andTrusted->add($this->exprLimitBitwise('config', Circle::CFG_FEDERATED, $aliasCircle)); |
| 640 | - $andTrusted->add($expr->emptyString($aliasOwner . '.instance')); |
|
| 640 | + $andTrusted->add($expr->emptyString($aliasOwner.'.instance')); |
|
| 641 | 641 | $orX->add($andTrusted); |
| 642 | 642 | |
| 643 | 643 | $this->andWhere($orX); |
@@ -664,7 +664,7 @@ discard block |
||
| 664 | 664 | } |
| 665 | 665 | $this->innerJoin( |
| 666 | 666 | $this->getDefaultSelectAlias(), CoreRequestBuilder::TABLE_MEMBER, $aliasMember, |
| 667 | - $expr->eq($aliasMember . '.circle_id', $alias . '.unique_id') |
|
| 667 | + $expr->eq($aliasMember.'.circle_id', $alias.'.unique_id') |
|
| 668 | 668 | ); |
| 669 | 669 | |
| 670 | 670 | $this->filterDirectMembership($aliasMember, $member); |
@@ -689,12 +689,12 @@ discard block |
||
| 689 | 689 | $aliasCircle, |
| 690 | 690 | 'circles_membership', |
| 691 | 691 | $aliasMembership, |
| 692 | - $this->expr()->eq($aliasCircle . '.unique_id', $aliasMembership . '.circle_id') |
|
| 692 | + $this->expr()->eq($aliasCircle.'.unique_id', $aliasMembership.'.circle_id') |
|
| 693 | 693 | ); |
| 694 | 694 | |
| 695 | 695 | $this->andWhere( |
| 696 | 696 | $this->expr()->eq( |
| 697 | - $aliasMembership . '.single_id', |
|
| 697 | + $aliasMembership.'.single_id', |
|
| 698 | 698 | $this->createNamedParameter($federatedUser->getSingleId()) |
| 699 | 699 | ) |
| 700 | 700 | ); |
@@ -715,19 +715,19 @@ discard block |
||
| 715 | 715 | |
| 716 | 716 | if ($member->getUserId() !== '') { |
| 717 | 717 | $andX->add( |
| 718 | - $expr->eq($aliasMember . '.user_id', $this->createNamedParameter($member->getUserId())) |
|
| 718 | + $expr->eq($aliasMember.'.user_id', $this->createNamedParameter($member->getUserId())) |
|
| 719 | 719 | ); |
| 720 | 720 | } |
| 721 | 721 | |
| 722 | 722 | if ($member->getSingleId() !== '') { |
| 723 | 723 | $andX->add( |
| 724 | - $expr->eq($aliasMember . '.single_id', $this->createNamedParameter($member->getSingleId())) |
|
| 724 | + $expr->eq($aliasMember.'.single_id', $this->createNamedParameter($member->getSingleId())) |
|
| 725 | 725 | ); |
| 726 | 726 | } |
| 727 | 727 | |
| 728 | 728 | if ($member->getUserType() > 0) { |
| 729 | 729 | $andX->add( |
| 730 | - $expr->eq($aliasMember . '.user_type', $this->createNamedParameter($member->getUserType())) |
|
| 730 | + $expr->eq($aliasMember.'.user_type', $this->createNamedParameter($member->getUserType())) |
|
| 731 | 731 | ); |
| 732 | 732 | } |
| 733 | 733 | |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | if ($member->getLevel() > 0) { |
| 737 | 737 | $andX->add( |
| 738 | 738 | $expr->gte( |
| 739 | - $aliasMember . '.level', |
|
| 739 | + $aliasMember.'.level', |
|
| 740 | 740 | $this->createNamedParameter($member->getLevel(), IQueryBuilder::PARAM_INT) |
| 741 | 741 | ) |
| 742 | 742 | ); |
@@ -777,7 +777,7 @@ discard block |
||
| 777 | 777 | $helperAlias, |
| 778 | 778 | CoreRequestBuilder::TABLE_CIRCLE, |
| 779 | 779 | $aliasCircle, |
| 780 | - $expr->eq($aliasCircle . '.unique_id', $helperAlias . '.' . $field) |
|
| 780 | + $expr->eq($aliasCircle.'.unique_id', $helperAlias.'.'.$field) |
|
| 781 | 781 | ); |
| 782 | 782 | |
| 783 | 783 | if (!is_null($initiator)) { |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | $this->generateCircleSelectAlias($aliasInvitedBy) |
| 809 | 809 | ->leftJoin( |
| 810 | 810 | $aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasInvitedBy, |
| 811 | - $expr->eq($aliasMember . '.invited_by', $aliasInvitedBy . '.unique_id') |
|
| 811 | + $expr->eq($aliasMember.'.invited_by', $aliasInvitedBy.'.unique_id') |
|
| 812 | 812 | ); |
| 813 | 813 | |
| 814 | 814 | $this->leftJoinOwner($aliasInvitedBy); |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | $this->generateCircleSelectAlias($aliasBasedOn) |
| 840 | 840 | ->leftJoin( |
| 841 | 841 | $aliasMember, CoreRequestBuilder::TABLE_CIRCLE, $aliasBasedOn, |
| 842 | - $expr->eq($aliasBasedOn . '.unique_id', $aliasMember . '.single_id') |
|
| 842 | + $expr->eq($aliasBasedOn.'.unique_id', $aliasMember.'.single_id') |
|
| 843 | 843 | ); |
| 844 | 844 | |
| 845 | 845 | if (!is_null($initiator)) { |
@@ -872,9 +872,9 @@ discard block |
||
| 872 | 872 | ->leftJoin( |
| 873 | 873 | $alias, CoreRequestBuilder::TABLE_MEMBER, $aliasMember, |
| 874 | 874 | $expr->andX( |
| 875 | - $expr->eq($aliasMember . '.circle_id', $alias . '.' . $field), |
|
| 875 | + $expr->eq($aliasMember.'.circle_id', $alias.'.'.$field), |
|
| 876 | 876 | $expr->eq( |
| 877 | - $aliasMember . '.level', |
|
| 877 | + $aliasMember.'.level', |
|
| 878 | 878 | $this->createNamedParameter(Member::LEVEL_OWNER, self::PARAM_INT) |
| 879 | 879 | ) |
| 880 | 880 | ) |
@@ -906,9 +906,9 @@ discard block |
||
| 906 | 906 | ->innerJoin( |
| 907 | 907 | $alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership, |
| 908 | 908 | $expr->andX( |
| 909 | - $expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field), |
|
| 909 | + $expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field), |
|
| 910 | 910 | $expr->eq( |
| 911 | - $aliasMembership . '.level', |
|
| 911 | + $aliasMembership.'.level', |
|
| 912 | 912 | $this->createNamedParameter( |
| 913 | 913 | Member::LEVEL_MEMBER, |
| 914 | 914 | self::PARAM_INT |
@@ -949,10 +949,10 @@ discard block |
||
| 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 | $expr->gte( |
| 955 | - $aliasMember . '.level', |
|
| 955 | + $aliasMember.'.level', |
|
| 956 | 956 | $this->createNamedParameter(Member::LEVEL_MEMBER, self::PARAM_INT) |
| 957 | 957 | ) |
| 958 | 958 | ) |
@@ -985,7 +985,7 @@ discard block |
||
| 985 | 985 | |
| 986 | 986 | $this->leftJoin( |
| 987 | 987 | $alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership, |
| 988 | - $expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field) |
|
| 988 | + $expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field) |
|
| 989 | 989 | ); |
| 990 | 990 | |
| 991 | 991 | // if (!$this->getBool('getData', $options, false)) { |
@@ -999,8 +999,8 @@ discard block |
||
| 999 | 999 | ->leftJoin( |
| 1000 | 1000 | $alias, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy, |
| 1001 | 1001 | $expr->andX( |
| 1002 | - $expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id'), |
|
| 1003 | - $expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id') |
|
| 1002 | + $expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id'), |
|
| 1003 | + $expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id') |
|
| 1004 | 1004 | ) |
| 1005 | 1005 | ); |
| 1006 | 1006 | |
@@ -1017,12 +1017,12 @@ discard block |
||
| 1017 | 1017 | $aliasUpstreamMembership = $this->generateAlias($alias, self::UPSTREAM_MEMBERSHIPS, $options); |
| 1018 | 1018 | $this->leftJoin( |
| 1019 | 1019 | $alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasUpstreamMembership, |
| 1020 | - $expr->eq($aliasUpstreamMembership . '.single_id', $this->createNamedParameter($singleId)) |
|
| 1020 | + $expr->eq($aliasUpstreamMembership.'.single_id', $this->createNamedParameter($singleId)) |
|
| 1021 | 1021 | ); |
| 1022 | 1022 | |
| 1023 | 1023 | $orX = $expr->orX( |
| 1024 | - $expr->eq($aliasUpstreamMembership . '.circle_id', $alias . '.' . $field), |
|
| 1025 | - $expr->eq($alias . '.' . $field, $this->createNamedParameter($singleId)) |
|
| 1024 | + $expr->eq($aliasUpstreamMembership.'.circle_id', $alias.'.'.$field), |
|
| 1025 | + $expr->eq($alias.'.'.$field, $this->createNamedParameter($singleId)) |
|
| 1026 | 1026 | ); |
| 1027 | 1027 | |
| 1028 | 1028 | $this->andWhere($orX); |
@@ -1043,11 +1043,11 @@ discard block |
||
| 1043 | 1043 | |
| 1044 | 1044 | $expr = $this->expr(); |
| 1045 | 1045 | $aliasMembership = $this->generateAlias($alias, self::MEMBERSHIPS); |
| 1046 | - $this->andWhere($expr->eq($aliasMembership . '.circle_id', $this->createNamedParameter($singleId))); |
|
| 1046 | + $this->andWhere($expr->eq($aliasMembership.'.circle_id', $this->createNamedParameter($singleId))); |
|
| 1047 | 1047 | if ($level > 1) { |
| 1048 | 1048 | $this->andWhere( |
| 1049 | 1049 | $expr->gte( |
| 1050 | - $aliasMembership . '.level', |
|
| 1050 | + $aliasMembership.'.level', |
|
| 1051 | 1051 | $this->createNamedParameter($level, IQueryBuilder::PARAM_INT) |
| 1052 | 1052 | ) |
| 1053 | 1053 | ); |
@@ -1075,8 +1075,8 @@ discard block |
||
| 1075 | 1075 | $this->leftJoin( |
| 1076 | 1076 | $alias, CoreRequestBuilder::TABLE_MEMBERSHIP, $aliasMembership, |
| 1077 | 1077 | $expr->andX( |
| 1078 | - $expr->eq($aliasMembership . '.inheritance_last', $alias . '.' . $field), |
|
| 1079 | - $expr->eq($aliasMembership . '.single_id', $alias . '.single_id') |
|
| 1078 | + $expr->eq($aliasMembership.'.inheritance_last', $alias.'.'.$field), |
|
| 1079 | + $expr->eq($aliasMembership.'.single_id', $alias.'.single_id') |
|
| 1080 | 1080 | ) |
| 1081 | 1081 | ); |
| 1082 | 1082 | |
@@ -1089,8 +1089,8 @@ discard block |
||
| 1089 | 1089 | ->leftJoin( |
| 1090 | 1090 | $aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritanceFrom, |
| 1091 | 1091 | $expr->andX( |
| 1092 | - $expr->eq($aliasMembership . '.circle_id', $aliasInheritanceFrom . '.circle_id'), |
|
| 1093 | - $expr->eq($aliasMembership . '.inheritance_first', $aliasInheritanceFrom . '.single_id') |
|
| 1092 | + $expr->eq($aliasMembership.'.circle_id', $aliasInheritanceFrom.'.circle_id'), |
|
| 1093 | + $expr->eq($aliasMembership.'.inheritance_first', $aliasInheritanceFrom.'.single_id') |
|
| 1094 | 1094 | ) |
| 1095 | 1095 | ); |
| 1096 | 1096 | } |
@@ -1130,7 +1130,7 @@ discard block |
||
| 1130 | 1130 | |
| 1131 | 1131 | $this->leftJoin( |
| 1132 | 1132 | $alias, CoreRequestBuilder::TABLE_TOKEN, $aliasShareToken, |
| 1133 | - $expr->eq($aliasShareToken . '.share_id', $alias . '.' . $field) |
|
| 1133 | + $expr->eq($aliasShareToken.'.share_id', $alias.'.'.$field) |
|
| 1134 | 1134 | ); |
| 1135 | 1135 | } |
| 1136 | 1136 | |
@@ -1172,14 +1172,14 @@ discard block |
||
| 1172 | 1172 | try { |
| 1173 | 1173 | $aliasConfig = $this->generateAlias($alias, self::CONFIG, $options); |
| 1174 | 1174 | $this->selectAlias( |
| 1175 | - $aliasConfig . '.config', |
|
| 1176 | - (($alias !== $this->getDefaultSelectAlias()) ? $alias . '_' : '') . 'circle_config' |
|
| 1175 | + $aliasConfig.'.config', |
|
| 1176 | + (($alias !== $this->getDefaultSelectAlias()) ? $alias.'_' : '').'circle_config' |
|
| 1177 | 1177 | ); |
| 1178 | 1178 | $this->leftJoin( |
| 1179 | 1179 | $alias, |
| 1180 | 1180 | CoreRequestBuilder::TABLE_CIRCLE, |
| 1181 | 1181 | $aliasConfig, |
| 1182 | - $expr->eq($alias . '.circle_id', $aliasConfig . '.unique_id') |
|
| 1182 | + $expr->eq($alias.'.circle_id', $aliasConfig.'.unique_id') |
|
| 1183 | 1183 | ); |
| 1184 | 1184 | } catch (RequestBuilderException $e) { |
| 1185 | 1185 | } |
@@ -1217,7 +1217,7 @@ discard block |
||
| 1217 | 1217 | $aliasMembership, |
| 1218 | 1218 | $expr->andX( |
| 1219 | 1219 | $this->exprLimit('single_id', $initiator->getSingleId(), $aliasMembership), |
| 1220 | - $expr->eq($aliasMembership . '.circle_id', $helperAlias . '.' . $field) |
|
| 1220 | + $expr->eq($aliasMembership.'.circle_id', $helperAlias.'.'.$field) |
|
| 1221 | 1221 | ) |
| 1222 | 1222 | ); |
| 1223 | 1223 | |
@@ -1236,11 +1236,11 @@ discard block |
||
| 1236 | 1236 | $aliasMembershipCircle = $this->generateAlias($aliasMembership, self::CONFIG, $options); |
| 1237 | 1237 | $orXMembershipCircle = $expr->orX(); |
| 1238 | 1238 | array_map( |
| 1239 | - function (string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) { |
|
| 1239 | + function(string $alias) use ($orXMembershipCircle, $aliasMembershipCircle) { |
|
| 1240 | 1240 | $orXMembershipCircle->add( |
| 1241 | 1241 | $this->expr()->eq( |
| 1242 | - $alias . '.circle_id', |
|
| 1243 | - $aliasMembershipCircle . '.unique_id' |
|
| 1242 | + $alias.'.circle_id', |
|
| 1243 | + $aliasMembershipCircle.'.unique_id' |
|
| 1244 | 1244 | ) |
| 1245 | 1245 | ); |
| 1246 | 1246 | }, |
@@ -1272,7 +1272,7 @@ discard block |
||
| 1272 | 1272 | $aliasDirectInitiator, |
| 1273 | 1273 | $expr->andX( |
| 1274 | 1274 | $this->exprLimit('single_id', $initiator->getSingleId(), $aliasDirectInitiator), |
| 1275 | - $expr->eq($aliasDirectInitiator . '.circle_id', $helperAlias . '.' . $field) |
|
| 1275 | + $expr->eq($aliasDirectInitiator.'.circle_id', $helperAlias.'.'.$field) |
|
| 1276 | 1276 | ) |
| 1277 | 1277 | ); |
| 1278 | 1278 | } catch (RequestBuilderException $e) { |
@@ -1286,8 +1286,8 @@ discard block |
||
| 1286 | 1286 | $this->leftJoin( |
| 1287 | 1287 | $aliasMembership, CoreRequestBuilder::TABLE_MEMBER, $aliasInitiator, |
| 1288 | 1288 | $expr->andX( |
| 1289 | - $expr->eq($aliasMembership . '.inheritance_first', $aliasInitiator . '.single_id'), |
|
| 1290 | - $expr->eq($aliasMembership . '.circle_id', $aliasInitiator . '.circle_id') |
|
| 1289 | + $expr->eq($aliasMembership.'.inheritance_first', $aliasInitiator.'.single_id'), |
|
| 1290 | + $expr->eq($aliasMembership.'.circle_id', $aliasInitiator.'.circle_id') |
|
| 1291 | 1291 | ) |
| 1292 | 1292 | ); |
| 1293 | 1293 | |
@@ -1295,8 +1295,8 @@ discard block |
||
| 1295 | 1295 | $this->leftJoin( |
| 1296 | 1296 | $aliasInitiator, CoreRequestBuilder::TABLE_MEMBER, $aliasInheritedBy, |
| 1297 | 1297 | $expr->andX( |
| 1298 | - $expr->eq($aliasMembership . '.single_id', $aliasInheritedBy . '.single_id'), |
|
| 1299 | - $expr->eq($aliasMembership . '.inheritance_last', $aliasInheritedBy . '.circle_id') |
|
| 1298 | + $expr->eq($aliasMembership.'.single_id', $aliasInheritedBy.'.single_id'), |
|
| 1299 | + $expr->eq($aliasMembership.'.inheritance_last', $aliasInheritedBy.'.circle_id') |
|
| 1300 | 1300 | ) |
| 1301 | 1301 | ); |
| 1302 | 1302 | |
@@ -1347,7 +1347,7 @@ discard block |
||
| 1347 | 1347 | $orX->add( |
| 1348 | 1348 | $expr->andX( |
| 1349 | 1349 | $this->exprLimitBitwise('config', Circle::CFG_PERSONAL, $aliasMembershipCircle), |
| 1350 | - $expr->eq($aliasMembership . '.level', $this->createNamedParameter(Member::LEVEL_OWNER)) |
|
| 1350 | + $expr->eq($aliasMembership.'.level', $this->createNamedParameter(Member::LEVEL_OWNER)) |
|
| 1351 | 1351 | ) |
| 1352 | 1352 | ); |
| 1353 | 1353 | } |
@@ -1357,10 +1357,10 @@ discard block |
||
| 1357 | 1357 | $orXLevelCheck = $expr->orX(); |
| 1358 | 1358 | |
| 1359 | 1359 | array_map( |
| 1360 | - function (string $alias) use ($orXLevelCheck, $minimumLevel) { |
|
| 1360 | + function(string $alias) use ($orXLevelCheck, $minimumLevel) { |
|
| 1361 | 1361 | $orXLevelCheck->add( |
| 1362 | 1362 | $this->expr()->gte( |
| 1363 | - $alias . '.level', |
|
| 1363 | + $alias.'.level', |
|
| 1364 | 1364 | $this->createNamedParameter($minimumLevel) |
| 1365 | 1365 | ) |
| 1366 | 1366 | ); |
@@ -1450,21 +1450,21 @@ discard block |
||
| 1450 | 1450 | $expr = $this->expr(); |
| 1451 | 1451 | $andPassive = $expr->andX(); |
| 1452 | 1452 | $andPassive->add( |
| 1453 | - $expr->eq($alias . '.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE)) |
|
| 1453 | + $expr->eq($alias.'.type', $this->createNamedParameter(RemoteInstance::TYPE_PASSIVE)) |
|
| 1454 | 1454 | ); |
| 1455 | 1455 | |
| 1456 | 1456 | $orMemberOrLevel = $expr->orX(); |
| 1457 | 1457 | $orMemberOrLevel->add( |
| 1458 | - $expr->eq($this->getDefaultSelectAlias() . '.instance', $alias . '.instance') |
|
| 1458 | + $expr->eq($this->getDefaultSelectAlias().'.instance', $alias.'.instance') |
|
| 1459 | 1459 | ); |
| 1460 | 1460 | // TODO: do we need this ? (display members from the local instance) |
| 1461 | 1461 | $orMemberOrLevel->add( |
| 1462 | - $expr->emptyString($this->getDefaultSelectAlias() . '.instance') |
|
| 1462 | + $expr->emptyString($this->getDefaultSelectAlias().'.instance') |
|
| 1463 | 1463 | ); |
| 1464 | 1464 | |
| 1465 | 1465 | $orMemberOrLevel->add( |
| 1466 | 1466 | $expr->eq( |
| 1467 | - $this->getDefaultSelectAlias() . '.level', |
|
| 1467 | + $this->getDefaultSelectAlias().'.level', |
|
| 1468 | 1468 | $this->createNamedParameter(Member::LEVEL_OWNER) |
| 1469 | 1469 | ) |
| 1470 | 1470 | ); |
@@ -1501,11 +1501,11 @@ discard block |
||
| 1501 | 1501 | ) |
| 1502 | 1502 | ->leftJoin( |
| 1503 | 1503 | $aliasShare, CoreRequestBuilder::TABLE_FILE_CACHE, $aliasFileCache, |
| 1504 | - $expr->eq($aliasShare . '.file_source', $aliasFileCache . '.fileid') |
|
| 1504 | + $expr->eq($aliasShare.'.file_source', $aliasFileCache.'.fileid') |
|
| 1505 | 1505 | ) |
| 1506 | 1506 | ->leftJoin( |
| 1507 | 1507 | $aliasFileCache, CoreRequestBuilder::TABLE_STORAGES, $aliasStorages, |
| 1508 | - $expr->eq($aliasFileCache . '.storage', $aliasStorages . '.numeric_id') |
|
| 1508 | + $expr->eq($aliasFileCache.'.storage', $aliasStorages.'.numeric_id') |
|
| 1509 | 1509 | ); |
| 1510 | 1510 | } |
| 1511 | 1511 | |
@@ -1527,8 +1527,8 @@ discard block |
||
| 1527 | 1527 | $this->leftJoin( |
| 1528 | 1528 | $aliasShareMemberships, CoreRequestBuilder::TABLE_SHARE, $aliasShareChild, |
| 1529 | 1529 | $expr->andX( |
| 1530 | - $expr->eq($aliasShareChild . '.parent', $aliasShare . '.id'), |
|
| 1531 | - $expr->eq($aliasShareChild . '.share_with', $aliasShareMemberships . '.single_id') |
|
| 1530 | + $expr->eq($aliasShareChild.'.parent', $aliasShare.'.id'), |
|
| 1531 | + $expr->eq($aliasShareChild.'.share_with', $aliasShareMemberships.'.single_id') |
|
| 1532 | 1532 | ) |
| 1533 | 1533 | ); |
| 1534 | 1534 | |
@@ -1578,13 +1578,13 @@ discard block |
||
| 1578 | 1578 | $this->leftJoin( |
| 1579 | 1579 | $aliasMountMemberships, CoreRequestBuilder::TABLE_MOUNTPOINT, $aliasMountpoint, |
| 1580 | 1580 | $expr->andX( |
| 1581 | - $expr->eq($aliasMountpoint . '.mount_id', $aliasMount . '.mount_id'), |
|
| 1582 | - $expr->eq($aliasMountpoint . '.single_id', $aliasMountMemberships . '.single_id') |
|
| 1581 | + $expr->eq($aliasMountpoint.'.mount_id', $aliasMount.'.mount_id'), |
|
| 1582 | + $expr->eq($aliasMountpoint.'.single_id', $aliasMountMemberships.'.single_id') |
|
| 1583 | 1583 | ) |
| 1584 | 1584 | ); |
| 1585 | 1585 | |
| 1586 | - $this->selectAlias($aliasMountpoint . '.mountpoint', $aliasMountpoint . '_mountpoint'); |
|
| 1587 | - $this->selectAlias($aliasMountpoint . '.mountpoint_hash', $aliasMountpoint . '_mountpoint_hash'); |
|
| 1586 | + $this->selectAlias($aliasMountpoint.'.mountpoint', $aliasMountpoint.'_mountpoint'); |
|
| 1587 | + $this->selectAlias($aliasMountpoint.'.mountpoint_hash', $aliasMountpoint.'_mountpoint_hash'); |
|
| 1588 | 1588 | } |
| 1589 | 1589 | |
| 1590 | 1590 | |
@@ -1692,10 +1692,10 @@ discard block |
||
| 1692 | 1692 | */ |
| 1693 | 1693 | public function generateAlias(string $base, string $extension, ?array &$options = []): string { |
| 1694 | 1694 | $search = str_replace('_', '.', $base); |
| 1695 | - $path = $search . '.' . $extension; |
|
| 1695 | + $path = $search.'.'.$extension; |
|
| 1696 | 1696 | if (!$this->validKey($path, $this->getSqlPath()) |
| 1697 | 1697 | && !in_array($extension, $this->getArray($search, $this->getSqlPath()))) { |
| 1698 | - throw new RequestBuilderException($extension . ' not found in ' . $search); |
|
| 1698 | + throw new RequestBuilderException($extension.' not found in '.$search); |
|
| 1699 | 1699 | } |
| 1700 | 1700 | |
| 1701 | 1701 | if (!is_array($options)) { |
@@ -1704,15 +1704,15 @@ discard block |
||
| 1704 | 1704 | |
| 1705 | 1705 | $optionPath = ''; |
| 1706 | 1706 | foreach (explode('.', $path) as $p) { |
| 1707 | - $optionPath = trim($optionPath . '.' . $p, '.'); |
|
| 1707 | + $optionPath = trim($optionPath.'.'.$p, '.'); |
|
| 1708 | 1708 | $options = array_merge( |
| 1709 | 1709 | $options, |
| 1710 | - $this->getArray($optionPath . '.' . self::OPTIONS, $this->getSqlPath()), |
|
| 1711 | - $this->getArray($optionPath . '.' . self::OPTIONS, $this->options) |
|
| 1710 | + $this->getArray($optionPath.'.'.self::OPTIONS, $this->getSqlPath()), |
|
| 1711 | + $this->getArray($optionPath.'.'.self::OPTIONS, $this->options) |
|
| 1712 | 1712 | ); |
| 1713 | 1713 | } |
| 1714 | 1714 | |
| 1715 | - return $base . '_' . $extension; |
|
| 1715 | + return $base.'_'.$extension; |
|
| 1716 | 1716 | } |
| 1717 | 1717 | |
| 1718 | 1718 | |
@@ -1732,7 +1732,7 @@ discard block |
||
| 1732 | 1732 | } else { |
| 1733 | 1733 | $k = $arr; |
| 1734 | 1734 | } |
| 1735 | - $path[$k] = $prefix . '_' . $k . '_'; |
|
| 1735 | + $path[$k] = $prefix.'_'.$k.'_'; |
|
| 1736 | 1736 | } |
| 1737 | 1737 | |
| 1738 | 1738 | return $path; |