@@ -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(); |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | */ |
427 | 427 | public function exprLimit(string $field, string $value, string $alias = '', bool $cs = true): string { |
428 | 428 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
429 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
429 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
430 | 430 | } |
431 | 431 | |
432 | 432 | $expr = $this->expr(); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | */ |
453 | 453 | public function exprLimitInt(string $field, int $value, string $alias = ''): string { |
454 | 454 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
455 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
455 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
456 | 456 | } |
457 | 457 | |
458 | 458 | $expr = $this->expr(); |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | */ |
471 | 471 | public function exprLimitBool(string $field, bool $value, string $alias = ''): string { |
472 | 472 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
473 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
473 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
474 | 474 | } |
475 | 475 | |
476 | 476 | $expr = $this->expr(); |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | string $alias = '' |
492 | 492 | ): ICompositeExpression { |
493 | 493 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
494 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
494 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
495 | 495 | } |
496 | 496 | |
497 | 497 | $expr = $this->expr(); |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | string $alias = '' |
518 | 518 | ): ICompositeExpression { |
519 | 519 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
520 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
520 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
521 | 521 | } |
522 | 522 | |
523 | 523 | $expr = $this->expr(); |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | bool $cs = true |
547 | 547 | ): ICompositeExpression { |
548 | 548 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
549 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
549 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
550 | 550 | } |
551 | 551 | |
552 | 552 | $andX = $this->expr()->andX(); |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | */ |
572 | 572 | public function exprLimitInArray(string $field, array $values, string $alias = ''): string { |
573 | 573 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
574 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
574 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
575 | 575 | } |
576 | 576 | |
577 | 577 | $expr = $this->expr(); |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | */ |
590 | 590 | public function exprLimitBitwise(string $field, int $flag, string $alias = ''): string { |
591 | 591 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
592 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
592 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
593 | 593 | } |
594 | 594 | |
595 | 595 | $expr = $this->expr(); |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | */ |
612 | 612 | public function exprLt(string $field, int $value, bool $lte = false, string $alias = ''): string { |
613 | 613 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
614 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
614 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
615 | 615 | } |
616 | 616 | |
617 | 617 | $expr = $this->expr(); |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | */ |
634 | 634 | public function exprGt(string $field, int $value, bool $gte = false, string $alias = ''): string { |
635 | 635 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
636 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
636 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
637 | 637 | } |
638 | 638 | |
639 | 639 | $expr = $this->expr(); |
@@ -742,7 +742,7 @@ discard block |
||
742 | 742 | */ |
743 | 743 | public function exprUnlike(string $field, string $value, string $alias = '', bool $cs = true): string { |
744 | 744 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
745 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
745 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
746 | 746 | } |
747 | 747 | |
748 | 748 | $expr = $this->expr(); |
@@ -766,7 +766,7 @@ discard block |
||
766 | 766 | */ |
767 | 767 | public function exprFilter(string $field, string $value, string $alias = '', bool $cs = true): string { |
768 | 768 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
769 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
769 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
770 | 770 | } |
771 | 771 | |
772 | 772 | $expr = $this->expr(); |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | */ |
793 | 793 | public function exprFilterInt(string $field, int $value, string $alias = ''): string { |
794 | 794 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
795 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
795 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
796 | 796 | } |
797 | 797 | |
798 | 798 | $expr = $this->expr(); |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | */ |
811 | 811 | public function exprFilterBool(string $field, bool $value, string $alias = ''): string { |
812 | 812 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
813 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
813 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
814 | 814 | } |
815 | 815 | |
816 | 816 | $expr = $this->expr(); |
@@ -831,7 +831,7 @@ discard block |
||
831 | 831 | string $alias = '' |
832 | 832 | ): ICompositeExpression { |
833 | 833 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
834 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
834 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
835 | 835 | } |
836 | 836 | |
837 | 837 | $expr = $this->expr(); |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | string $alias = '' |
858 | 858 | ): ICompositeExpression { |
859 | 859 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
860 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
860 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
861 | 861 | } |
862 | 862 | |
863 | 863 | $expr = $this->expr(); |
@@ -886,7 +886,7 @@ discard block |
||
886 | 886 | bool $cs = true |
887 | 887 | ): ICompositeExpression { |
888 | 888 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
889 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
889 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
890 | 890 | } |
891 | 891 | |
892 | 892 | $orX = $this->expr()->orX(); |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | */ |
912 | 912 | public function exprFilterInArray(string $field, array $values, string $alias = ''): string { |
913 | 913 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
914 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
914 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
915 | 915 | } |
916 | 916 | |
917 | 917 | $expr = $this->expr(); |
@@ -929,7 +929,7 @@ discard block |
||
929 | 929 | */ |
930 | 930 | public function exprFilterBitwise(string $field, int $flag, string $alias = ''): string { |
931 | 931 | if ($this->getType() === DBALQueryBuilder::SELECT) { |
932 | - $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias) . '.' . $field; |
|
932 | + $field = (($alias === '') ? $this->getDefaultSelectAlias() : $alias).'.'.$field; |
|
933 | 933 | } |
934 | 934 | |
935 | 935 | $expr = $this->expr(); |
@@ -1090,12 +1090,12 @@ discard block |
||
1090 | 1090 | string $alias = '' |
1091 | 1091 | ): self { |
1092 | 1092 | $selectFields = array_map( |
1093 | - function (string $item) use ($alias) { |
|
1093 | + function(string $item) use ($alias) { |
|
1094 | 1094 | if ($alias === '') { |
1095 | 1095 | return $item; |
1096 | 1096 | } |
1097 | 1097 | |
1098 | - return $alias . '.' . $item; |
|
1098 | + return $alias.'.'.$item; |
|
1099 | 1099 | }, $fields |
1100 | 1100 | ); |
1101 | 1101 | |
@@ -1121,13 +1121,13 @@ discard block |
||
1121 | 1121 | string $prefix, |
1122 | 1122 | array $default = [] |
1123 | 1123 | ): self { |
1124 | - $prefix = trim($prefix) . '_'; |
|
1124 | + $prefix = trim($prefix).'_'; |
|
1125 | 1125 | foreach ($default as $k => $v) { |
1126 | - $this->addDefaultValue($prefix . $k, (string)$v); |
|
1126 | + $this->addDefaultValue($prefix.$k, (string)$v); |
|
1127 | 1127 | } |
1128 | 1128 | |
1129 | 1129 | foreach ($fields as $field) { |
1130 | - $this->selectAlias($alias . '.' . $field, $prefix . $field); |
|
1130 | + $this->selectAlias($alias.'.'.$field, $prefix.$field); |
|
1131 | 1131 | } |
1132 | 1132 | |
1133 | 1133 | return $this; |
@@ -253,8 +253,8 @@ discard block |
||
253 | 253 | $qb->filterDirectMembership(CoreQueryBuilder::MEMBER, $probe->getFilterMember()); |
254 | 254 | } |
255 | 255 | |
256 | - $qb->orderBy($qb->getDefaultSelectAlias() . '.level', 'desc'); |
|
257 | - $qb->addOrderBy($qb->getDefaultSelectAlias() . '.cached_name', 'asc'); |
|
256 | + $qb->orderBy($qb->getDefaultSelectAlias().'.level', 'desc'); |
|
257 | + $qb->addOrderBy($qb->getDefaultSelectAlias().'.cached_name', 'asc'); |
|
258 | 258 | |
259 | 259 | return $this->getItemsFromRequest($qb); |
260 | 260 | } |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $qb->limitToMembersByInheritance(CoreQueryBuilder::MEMBER, $singleId, $level); |
280 | 280 | |
281 | 281 | $aliasMembership = $qb->generateAlias(CoreQueryBuilder::MEMBER, CoreQueryBuilder::MEMBERSHIPS); |
282 | - $qb->orderBy($aliasMembership . '.inheritance_depth', 'asc'); |
|
282 | + $qb->orderBy($aliasMembership.'.inheritance_depth', 'asc'); |
|
283 | 283 | |
284 | 284 | return $this->getItemsFromRequest($qb); |
285 | 285 | } |
@@ -347,10 +347,10 @@ discard block |
||
347 | 347 | $qb = $this->getMemberSelectSql(); |
348 | 348 | $qb->limitToCircleId($circleId); |
349 | 349 | |
350 | - $qb->andwhere($qb->expr()->nonEmptyString(CoreQueryBuilder::MEMBER . '.instance')); |
|
350 | + $qb->andwhere($qb->expr()->nonEmptyString(CoreQueryBuilder::MEMBER.'.instance')); |
|
351 | 351 | |
352 | 352 | return array_map( |
353 | - function (Member $member): string { |
|
353 | + function(Member $member): string { |
|
354 | 354 | return $member->getInstance(); |
355 | 355 | }, $this->getItemsFromRequest($qb) |
356 | 356 | ); |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | */ |
401 | 401 | public function searchFederatedUsers(string $needle): array { |
402 | 402 | $qb = $this->getMemberSelectSql(); |
403 | - $qb->searchInDBField('user_id', '%' . $needle . '%'); |
|
403 | + $qb->searchInDBField('user_id', '%'.$needle.'%'); |
|
404 | 404 | |
405 | 405 | return $this->getItemsFromRequest($qb, true); |
406 | 406 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $qb->generateSelect(self::TABLE_CIRCLE, self::$tables[self::TABLE_CIRCLE], $alias); |
81 | 81 | |
82 | 82 | if (!$single) { |
83 | - $qb->orderBy($alias . '.creation', 'asc'); |
|
83 | + $qb->orderBy($alias.'.creation', 'asc'); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | return $qb; |
@@ -198,10 +198,10 @@ discard block |
||
198 | 198 | $qb->leftJoin( |
199 | 199 | CoreQueryBuilder::REMOTE, self::TABLE_MEMBER, $aliasMember, |
200 | 200 | $expr->andX( |
201 | - $expr->eq($aliasMember . '.circle_id', $qb->createNamedParameter($circle->getSingleId())), |
|
202 | - $expr->eq($aliasMember . '.instance', CoreQueryBuilder::REMOTE . '.instance'), |
|
201 | + $expr->eq($aliasMember.'.circle_id', $qb->createNamedParameter($circle->getSingleId())), |
|
202 | + $expr->eq($aliasMember.'.instance', CoreQueryBuilder::REMOTE.'.instance'), |
|
203 | 203 | $expr->gte( |
204 | - $aliasMember . '.level', |
|
204 | + $aliasMember.'.level', |
|
205 | 205 | $qb->createNamedParameter(Member::LEVEL_MEMBER, IQueryBuilder::PARAM_INT) |
206 | 206 | ) |
207 | 207 | ) |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | |
210 | 210 | $external = $expr->andX(); |
211 | 211 | $external->add($qb->exprLimit('type', RemoteInstance::TYPE_EXTERNAL, '', false)); |
212 | - $external->add($expr->isNotNull($aliasMember . '.instance')); |
|
212 | + $external->add($expr->isNotNull($aliasMember.'.instance')); |
|
213 | 213 | $orX->add($external); |
214 | 214 | } |
215 | 215 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | self::$tables[self::TABLE_MEMBER], |
87 | 87 | CoreQueryBuilder::MEMBER |
88 | 88 | ) |
89 | - ->orderBy(CoreQueryBuilder::MEMBER . '.joined'); |
|
89 | + ->orderBy(CoreQueryBuilder::MEMBER.'.joined'); |
|
90 | 90 | |
91 | 91 | if ($getBasedOn) { |
92 | 92 | $qb->leftJoinBasedOn(CoreQueryBuilder::MEMBER, $initiator); |
@@ -187,11 +187,11 @@ discard block |
||
187 | 187 | $this->federatedUserService->commandLineInitiator($initiator, $initiatorType, $circleId, true); |
188 | 188 | $circle = $this->circleService->getCircle($circleId); |
189 | 189 | |
190 | - $output->writeln('<info>Name</info>: ' . $circle->getName()); |
|
190 | + $output->writeln('<info>Name</info>: '.$circle->getName()); |
|
191 | 191 | $owner = $circle->getOwner(); |
192 | - $output->writeln('<info>Owner</info>: ' . $owner->getUserId() . '@' . $owner->getInstance()); |
|
192 | + $output->writeln('<info>Owner</info>: '.$owner->getUserId().'@'.$owner->getInstance()); |
|
193 | 193 | $type = implode(", ", Circle::getCircleFlags($circle, Circle::FLAGS_LONG)); |
194 | - $output->writeln('<info>Config</info>: ' . $type); |
|
194 | + $output->writeln('<info>Config</info>: '.$type); |
|
195 | 195 | $output->writeln(' '); |
196 | 196 | |
197 | 197 | $tree = new TreeNode(null, new SimpleDataStore(['circle' => $circle])); |
@@ -256,8 +256,7 @@ discard block |
||
256 | 256 | $member, |
257 | 257 | $this->input->getOption('display-name') |
258 | 258 | ), |
259 | - ($level > 0) ? Member::$DEF_LEVEL[$level] : |
|
260 | - '(' . strtolower($member->getStatus()) . ')', |
|
259 | + ($level > 0) ? Member::$DEF_LEVEL[$level] : '('.strtolower($member->getStatus()).')', |
|
261 | 260 | ($member->hasInvitedBy()) ? $this->configService->displayFederatedUser( |
262 | 261 | $member->getInvitedBy(), |
263 | 262 | $this->input->getOption('display-name') |
@@ -423,14 +422,14 @@ discard block |
||
423 | 422 | $member = $data->gObj('member', Member::class); |
424 | 423 | |
425 | 424 | if ($lineNumber === 1) { |
426 | - $line .= '<info>' . $member->getSingleId() . '</info>'; |
|
425 | + $line .= '<info>'.$member->getSingleId().'</info>'; |
|
427 | 426 | if (!$this->configService->isLocalInstance($member->getInstance())) { |
428 | - $line .= '@' . $member->getInstance(); |
|
427 | + $line .= '@'.$member->getInstance(); |
|
429 | 428 | } |
430 | - $line .= ' (' . Member::$DEF_LEVEL[$member->getLevel()] . ')'; |
|
429 | + $line .= ' ('.Member::$DEF_LEVEL[$member->getLevel()].')'; |
|
431 | 430 | |
432 | - $line .= ' <info>MemberId</info>: ' . $member->getId(); |
|
433 | - $line .= ' <info>Name</info>: ' . $this->configService->displayFederatedUser( |
|
431 | + $line .= ' <info>MemberId</info>: '.$member->getId(); |
|
432 | + $line .= ' <info>Name</info>: '.$this->configService->displayFederatedUser( |
|
434 | 433 | $member, |
435 | 434 | $this->input->getOption('display-name') |
436 | 435 | ); |
@@ -438,7 +437,7 @@ discard block |
||
438 | 437 | $line .= ' <info>Source</info>: ' |
439 | 438 | . Circle::$DEF_SOURCE[$member->getBasedOn()->getSource()]; |
440 | 439 | } else { |
441 | - $line .= ' <info>Type</info>: ' . Member::$TYPE[$member->getUserType()]; |
|
440 | + $line .= ' <info>Type</info>: '.Member::$TYPE[$member->getUserType()]; |
|
442 | 441 | } |
443 | 442 | } |
444 | 443 | |
@@ -451,15 +450,15 @@ discard block |
||
451 | 450 | return $line; |
452 | 451 | } |
453 | 452 | $owner = $circle->getOwner(); |
454 | - $line .= '<info>Owner</info>: ' . $owner->getUserId() . '@' . $owner->getInstance(); |
|
453 | + $line .= '<info>Owner</info>: '.$owner->getUserId().'@'.$owner->getInstance(); |
|
455 | 454 | $type = implode(", ", Circle::getCircleFlags($circle, Circle::FLAGS_LONG)); |
456 | - $line .= ($type === '') ? '' : ' <info>Config</info>: ' . $type; |
|
455 | + $line .= ($type === '') ? '' : ' <info>Config</info>: '.$type; |
|
457 | 456 | } |
458 | 457 | } else { |
459 | 458 | if ($lineNumber === 1 && !is_null($circle)) { |
460 | - $line .= '<info>' . $circle->getSingleId() . '</info>'; |
|
459 | + $line .= '<info>'.$circle->getSingleId().'</info>'; |
|
461 | 460 | if (!$this->configService->isLocalInstance($circle->getInstance())) { |
462 | - $line .= '@' . $circle->getInstance(); |
|
461 | + $line .= '@'.$circle->getInstance(); |
|
463 | 462 | } |
464 | 463 | } |
465 | 464 | } |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | public function getInstance(): string { |
258 | 258 | $instance = $this->getHost(); |
259 | 259 | if ($this->getPort() > 0) { |
260 | - $instance .= ':' . $this->getPort(); |
|
260 | + $instance .= ':'.$this->getPort(); |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | return $instance; |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | if ($protocol === null) { |
282 | 282 | if (strpos($url, '/') > -1) { |
283 | 283 | [$address, $baseUrl] = explode('/', $url, 2); |
284 | - $this->setBaseUrl('/' . $baseUrl); |
|
284 | + $this->setBaseUrl('/'.$baseUrl); |
|
285 | 285 | } else { |
286 | 286 | $address = $url; |
287 | 287 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | continue; |
392 | 392 | } |
393 | 393 | |
394 | - $url = str_replace(':' . $k, $this->data[$k], $url); |
|
394 | + $url = str_replace(':'.$k, $this->data[$k], $url); |
|
395 | 395 | } |
396 | 396 | |
397 | 397 | return $url; |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | continue; |
409 | 409 | } |
410 | 410 | |
411 | - $url = str_replace(':' . $k, $this->params[$k], $url); |
|
411 | + $url = str_replace(':'.$k, $this->params[$k], $url); |
|
412 | 412 | } |
413 | 413 | |
414 | 414 | return $url; |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | * @return string |
420 | 420 | */ |
421 | 421 | public function getPath(): string { |
422 | - return $this->baseUrl . $this->url; |
|
422 | + return $this->baseUrl.$this->url; |
|
423 | 423 | } |
424 | 424 | |
425 | 425 | |
@@ -436,9 +436,9 @@ discard block |
||
436 | 436 | * @return string |
437 | 437 | */ |
438 | 438 | public function getCompleteUrl(): string { |
439 | - $port = ($this->getPort() > 0) ? ':' . $this->getPort() : ''; |
|
439 | + $port = ($this->getPort() > 0) ? ':'.$this->getPort() : ''; |
|
440 | 440 | |
441 | - return $this->getUsedProtocol() . '://' . $this->getHost() . $port . $this->getParametersUrl(); |
|
441 | + return $this->getUsedProtocol().'://'.$this->getHost().$port.$this->getParametersUrl(); |
|
442 | 442 | } |
443 | 443 | |
444 | 444 | |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | public function addHeader($key, $value): Request { |
454 | 454 | $header = $this->get($key, $this->headers); |
455 | 455 | if ($header !== '') { |
456 | - $header .= ', ' . $value; |
|
456 | + $header .= ', '.$value; |
|
457 | 457 | } else { |
458 | 458 | $header = $value; |
459 | 459 | } |
@@ -683,11 +683,11 @@ discard block |
||
683 | 683 | |
684 | 684 | switch ($this->getQueryStringType()) { |
685 | 685 | case self::QS_VAR_ARRAY: |
686 | - return '?' . http_build_query($this->getParams()); |
|
686 | + return '?'.http_build_query($this->getParams()); |
|
687 | 687 | |
688 | 688 | case self::QS_VAR_DUPLICATE: |
689 | 689 | default: |
690 | - return '?' . preg_replace( |
|
690 | + return '?'.preg_replace( |
|
691 | 691 | '/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', http_build_query($this->getParams()) |
692 | 692 | ); |
693 | 693 | } |
@@ -169,10 +169,10 @@ |
||
169 | 169 | return $client->delete($request->getCompleteUrl(), $request->getClientOptions()); |
170 | 170 | case Request::TYPE_GET: |
171 | 171 | return $client->get( |
172 | - $request->getCompleteUrl() . $request->getQueryString(), $request->getClientOptions() |
|
172 | + $request->getCompleteUrl().$request->getQueryString(), $request->getClientOptions() |
|
173 | 173 | ); |
174 | 174 | default: |
175 | - throw new Exception('unknown request type ' . json_encode($request)); |
|
175 | + throw new Exception('unknown request type '.json_encode($request)); |
|
176 | 176 | } |
177 | 177 | } |
178 | 178 | } |
@@ -177,7 +177,7 @@ |
||
177 | 177 | // It seems that AccountManager use deprecated dispatcher, let's use a deprecated listener |
178 | 178 | $dispatcher = OC::$server->getEventDispatcher(); |
179 | 179 | $dispatcher->addListener( |
180 | - 'OC\AccountManager::userUpdated', function (GenericEvent $event) { |
|
180 | + 'OC\AccountManager::userUpdated', function(GenericEvent $event) { |
|
181 | 181 | /** @var IUser $user */ |
182 | 182 | $user = $event->getSubject(); |
183 | 183 | /** @var DeprecatedListener $deprecatedListener */ |