@@ -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 |
@@ -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 | } |
@@ -257,9 +257,9 @@ |
||
257 | 257 | Circle::$DEF_SOURCE[$circle->getSource()], |
258 | 258 | $this->cut($displayName ? $owner->getDisplayName() : $owner->getUserId(), 40), |
259 | 259 | $this->configService->displayInstance($owner->getInstance()), |
260 | - $circle->getPopulation() . '/' |
|
260 | + $circle->getPopulation().'/' |
|
261 | 261 | . $this->getInt('members_limit', $circle->getSettings(), -1) |
262 | - . ' (' . $circle->getPopulationInherited() . ')' |
|
262 | + . ' ('.$circle->getPopulationInherited().')' |
|
263 | 263 | ] |
264 | 264 | ); |
265 | 265 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } catch (FederatedItemException $e) { |
125 | 125 | if ($input->getOption('status-code')) { |
126 | 126 | throw new FederatedItemException( |
127 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
127 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
128 | 128 | ); |
129 | 129 | } |
130 | 130 | |
@@ -136,9 +136,9 @@ discard block |
||
136 | 136 | } elseif (strtolower($input->getOption('output')) !== 'none') { |
137 | 137 | /** @var Circle $circle */ |
138 | 138 | $circle = $this->deserialize($outcome, Circle::class); |
139 | - $output->writeln('Id: <info>' . $circle->getSingleId() . '</info>'); |
|
140 | - $output->writeln('Name: <info>' . $circle->getDisplayName() . '</info>'); |
|
141 | - $output->writeln('Owner: <info>' . $circle->getOwner()->getDisplayName() . '</info>'); |
|
139 | + $output->writeln('Id: <info>'.$circle->getSingleId().'</info>'); |
|
140 | + $output->writeln('Name: <info>'.$circle->getDisplayName().'</info>'); |
|
141 | + $output->writeln('Owner: <info>'.$circle->getOwner()->getDisplayName().'</info>'); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | return 0; |
@@ -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 | } |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | if ($shallow) { |
383 | 383 | $qb->limitInt('parent', $node->getId(), $aliasFileCache); |
384 | 384 | } else { |
385 | - $qb->like('path', $node->getInternalPath() . '/%', $aliasFileCache); |
|
385 | + $qb->like('path', $node->getInternalPath().'/%', $aliasFileCache); |
|
386 | 386 | } |
387 | 387 | $qb->limitNull('parent', false); |
388 | 388 | |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | } |
443 | 443 | |
444 | 444 | $ids = array_map( |
445 | - function (ShareWrapper $share): string { |
|
445 | + function(ShareWrapper $share): string { |
|
446 | 446 | return $share->getId(); |
447 | 447 | }, |
448 | 448 | $this->getItemsFromRequest($qb) |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | $expr = $qb->expr(); |
458 | 458 | $qb->leftJoin( |
459 | 459 | CoreQueryBuilder::SHARE, CoreRequestBuilder::TABLE_SHARE, 'p', |
460 | - $expr->andX($expr->eq('p.id', CoreQueryBuilder::SHARE . '.parent')) |
|
460 | + $expr->andX($expr->eq('p.id', CoreQueryBuilder::SHARE.'.parent')) |
|
461 | 461 | ); |
462 | 462 | |
463 | 463 | $qb->filterNull('parent'); |
@@ -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 | } |
@@ -105,7 +105,7 @@ |
||
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 | ) |