@@ -63,7 +63,7 @@ |
||
63 | 63 | echo($result); |
64 | 64 | |
65 | 65 | $size = ob_get_length(); |
66 | - header('Content-Length: ' . $size); |
|
66 | + header('Content-Length: '.$size); |
|
67 | 67 | ob_end_flush(); |
68 | 68 | flush(); |
69 | 69 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @param array $serializable |
131 | 131 | */ |
132 | 132 | public function emergency(string $message, bool $trace = false, array $serializable = []): void { |
133 | - $this->log(self::$EMERGENCY, '[emergency] ' . $message, $trace, $serializable); |
|
133 | + $this->log(self::$EMERGENCY, '[emergency] '.$message, $trace, $serializable); |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @param array $serializable |
140 | 140 | */ |
141 | 141 | public function alert(string $message, bool $trace = false, array $serializable = []): void { |
142 | - $this->log(self::$ALERT, '[alert] ' . $message, $trace, $serializable); |
|
142 | + $this->log(self::$ALERT, '[alert] '.$message, $trace, $serializable); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * @param array $serializable |
149 | 149 | */ |
150 | 150 | public function warning(string $message, bool $trace = false, array $serializable = []): void { |
151 | - $this->log(self::$WARNING, '[warning] ' . $message, $trace, $serializable); |
|
151 | + $this->log(self::$WARNING, '[warning] '.$message, $trace, $serializable); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * @param array $serializable |
158 | 158 | */ |
159 | 159 | public function notice(string $message, bool $trace = false, array $serializable = []): void { |
160 | - $this->log(self::$NOTICE, '[notice] ' . $message, $trace, $serializable); |
|
160 | + $this->log(self::$NOTICE, '[notice] '.$message, $trace, $serializable); |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * @param array $serializable |
166 | 166 | */ |
167 | 167 | public function debug(string $message, array $serializable = []): void { |
168 | - $message = '[debug] ' . $message; |
|
168 | + $message = '[debug] '.$message; |
|
169 | 169 | $debugLevel = (int)$this->appConfig('debug_level'); |
170 | 170 | $this->log($debugLevel, $message, ($this->appConfig('debug_trace') === '1'), $serializable); |
171 | 171 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | if ($trace) { |
183 | 183 | $opts['exception'] = new HintException($message, json_encode($serializable)); |
184 | 184 | } elseif (!empty($serializable)) { |
185 | - $message .= ' -- ' . json_encode($serializable); |
|
185 | + $message .= ' -- '.json_encode($serializable); |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | $this->logger() |
@@ -66,7 +66,7 @@ |
||
66 | 66 | */ |
67 | 67 | public function deserialize(array $data, string $class): IDeserializable { |
68 | 68 | if ($class instanceof IDeserializable) { |
69 | - throw new InvalidItemException(get_class($class) . ' does not implement IDeserializable'); |
|
69 | + throw new InvalidItemException(get_class($class).' does not implement IDeserializable'); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** @var IDeserializable $item */ |
@@ -219,8 +219,8 @@ discard block |
||
219 | 219 | throw new SignatureException('missing elements in \'headers\''); |
220 | 220 | } |
221 | 221 | |
222 | - $target = strtolower($request->getMethod()) . " " . $request->getRequestUri(); |
|
223 | - $estimated = ['(request-target): ' . $target]; |
|
222 | + $target = strtolower($request->getMethod())." ".$request->getRequestUri(); |
|
223 | + $estimated = ['(request-target): '.$target]; |
|
224 | 224 | |
225 | 225 | foreach ($headers as $key) { |
226 | 226 | $value = $request->getHeader($key); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | throw new SignatureException('empty elements in \'headers\''); |
232 | 232 | } |
233 | 233 | |
234 | - $estimated[] = $key . ': ' . $value; |
|
234 | + $estimated[] = $key.': '.$value; |
|
235 | 235 | } |
236 | 236 | $signedRequest->setClearSignature(implode("\n", $estimated)); |
237 | 237 | } |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | $request = $signedRequest->getOutgoingRequest(); |
304 | 304 | |
305 | 305 | $data = new SimpleDataStore(); |
306 | - $data->s('(request-target)', NCRequest::method($request->getType()) . ' ' . $request->getPath()) |
|
306 | + $data->s('(request-target)', NCRequest::method($request->getType()).' '.$request->getPath()) |
|
307 | 307 | ->sInt('content-length', strlen($signedRequest->getBody())) |
308 | 308 | ->s('date', gmdate($this->dateHeader)) |
309 | 309 | ->s('digest', $signedRequest->getDigest()) |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | foreach ($data->keys() as $element) { |
323 | 323 | try { |
324 | 324 | $value = $data->gItem($element); |
325 | - $signing[] = $element . ': ' . $value; |
|
325 | + $signing[] = $element.': '.$value; |
|
326 | 326 | if ($element !== '(request-target)') { |
327 | 327 | $signedRequest->getOutgoingRequest()->addHeader($element, $value); |
328 | 328 | } |
@@ -355,10 +355,10 @@ discard block |
||
355 | 355 | $headers = array_diff($signedRequest->getSignatureHeader()->keys(), ['(request-target)']); |
356 | 356 | $signatory = $signedRequest->getSignatory(); |
357 | 357 | $signatureElements = [ |
358 | - 'keyId="' . $signatory->getKeyId() . '"', |
|
359 | - 'algorithm="' . $this->getChosenEncryption($signatory) . '"', |
|
360 | - 'headers="' . implode(' ', $headers) . '"', |
|
361 | - 'signature="' . $signedRequest->getSignedSignature() . '"' |
|
358 | + 'keyId="'.$signatory->getKeyId().'"', |
|
359 | + 'algorithm="'.$this->getChosenEncryption($signatory).'"', |
|
360 | + 'headers="'.implode(' ', $headers).'"', |
|
361 | + 'signature="'.$signedRequest->getSignedSignature().'"' |
|
362 | 362 | ]; |
363 | 363 | |
364 | 364 | $signedRequest->getOutgoingRequest()->addHeader('Signature', implode(',', $signatureElements)); |
@@ -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); |