@@ -265,7 +265,7 @@ |
||
| 265 | 265 | * @return DataResponse |
| 266 | 266 | */ |
| 267 | 267 | private function federatedFail($reason) { |
| 268 | - $this->miscService->log(0, 'federated fail: ' . $reason); |
|
| 268 | + $this->miscService->log(0, 'federated fail: '.$reason); |
|
| 269 | 269 | |
| 270 | 270 | return new DataResponse( |
| 271 | 271 | [ |
@@ -510,24 +510,24 @@ |
||
| 510 | 510 | switch ($type) { |
| 511 | 511 | case Circle::CIRCLES_PERSONAL: |
| 512 | 512 | return $urlGen->getAbsoluteURL( |
| 513 | - $urlGen->imagePath(Application::APP_NAME, 'personal' . $ext) |
|
| 513 | + $urlGen->imagePath(Application::APP_NAME, 'personal'.$ext) |
|
| 514 | 514 | ); |
| 515 | 515 | case Circle::CIRCLES_CLOSED: |
| 516 | 516 | return $urlGen->getAbsoluteURL( |
| 517 | - $urlGen->imagePath(Application::APP_NAME, 'closed' . $ext) |
|
| 517 | + $urlGen->imagePath(Application::APP_NAME, 'closed'.$ext) |
|
| 518 | 518 | ); |
| 519 | 519 | case Circle::CIRCLES_SECRET: |
| 520 | 520 | return $urlGen->getAbsoluteURL( |
| 521 | - $urlGen->imagePath(Application::APP_NAME, 'secret' . $ext) |
|
| 521 | + $urlGen->imagePath(Application::APP_NAME, 'secret'.$ext) |
|
| 522 | 522 | ); |
| 523 | 523 | case Circle::CIRCLES_PUBLIC: |
| 524 | 524 | return $urlGen->getAbsoluteURL( |
| 525 | - $urlGen->imagePath(Application::APP_NAME, 'black_circle' . $ext) |
|
| 525 | + $urlGen->imagePath(Application::APP_NAME, 'black_circle'.$ext) |
|
| 526 | 526 | ); |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 | return $urlGen->getAbsoluteURL( |
| 530 | - $urlGen->imagePath(Application::APP_NAME, 'black_circle' . $ext) |
|
| 530 | + $urlGen->imagePath(Application::APP_NAME, 'black_circle'.$ext) |
|
| 531 | 531 | ); |
| 532 | 532 | } |
| 533 | 533 | |
@@ -344,7 +344,7 @@ |
||
| 344 | 344 | ); |
| 345 | 345 | } |
| 346 | 346 | |
| 347 | - $tmpContact = $this->userId . ':' . $ident; |
|
| 347 | + $tmpContact = $this->userId.':'.$ident; |
|
| 348 | 348 | $result = MiscService::getContactData($tmpContact); |
| 349 | 349 | if (empty($result)) { |
| 350 | 350 | throw new NoUserException($this->l10n->t("This contact is not available")); |
@@ -331,8 +331,8 @@ discard block |
||
| 331 | 331 | /** |
| 332 | 332 | * Verify if a local account is valid. |
| 333 | 333 | * |
| 334 | - * @param $ident |
|
| 335 | - * @param $type |
|
| 334 | + * @param string $ident |
|
| 335 | + * @param integer $type |
|
| 336 | 336 | * |
| 337 | 337 | * @param string $instance |
| 338 | 338 | * |
@@ -383,8 +383,8 @@ discard block |
||
| 383 | 383 | /** |
| 384 | 384 | * Verify if a contact exist in current user address books. |
| 385 | 385 | * |
| 386 | - * @param $ident |
|
| 387 | - * @param $type |
|
| 386 | + * @param string $ident |
|
| 387 | + * @param integer $type |
|
| 388 | 388 | * |
| 389 | 389 | * @throws NoUserException |
| 390 | 390 | * @throws EmailAccountInvalidFormatException |
@@ -476,8 +476,8 @@ discard block |
||
| 476 | 476 | * Will return any data of a user related to a circle (as a Member). User can be a 'non-member' |
| 477 | 477 | * Viewer needs to be at least Member of the Circle |
| 478 | 478 | * |
| 479 | - * @param $circleId |
|
| 480 | - * @param $userId |
|
| 479 | + * @param string $circleId |
|
| 480 | + * @param string $userId |
|
| 481 | 481 | * @param $type |
| 482 | 482 | * @param bool $forceAll |
| 483 | 483 | * |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | * @param int $level |
| 534 | 534 | * @param bool $force |
| 535 | 535 | * |
| 536 | - * @return array |
|
| 536 | + * @return Member[] |
|
| 537 | 537 | * @throws CircleDoesNotExistException |
| 538 | 538 | * @throws CircleTypeNotValidException |
| 539 | 539 | * @throws ConfigNoCircleAvailableException |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | * @return string |
| 147 | 147 | */ |
| 148 | 148 | public function getUniqueId(): string { |
| 149 | - return $this->getAddressBookId() . '/' . $this->getCardUri(); |
|
| 149 | + return $this->getAddressBookId().'/'.$this->getCardUri(); |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @param mixed $type |
|
| 97 | + * @param string $type |
|
| 98 | 98 | * |
| 99 | 99 | * @return GSEvent |
| 100 | 100 | */ |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | if ((!$this->isNonSSLLinksAllowed() || strpos($remote, 'http://') !== 0) |
| 213 | 213 | && strpos($remote, 'https://') !== 0 |
| 214 | 214 | ) { |
| 215 | - $remote = 'https://' . $remote; |
|
| 215 | + $remote = 'https://'.$remote; |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | return rtrim($remote, '/'); |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | return false; |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | - throw new GSStatusException('GS and lookup are not configured : ' . $lookup . ', ' . $enabled); |
|
| 402 | + throw new GSStatusException('GS and lookup are not configured : '.$lookup.', '.$enabled); |
|
| 403 | 403 | } |
| 404 | 404 | |
| 405 | 405 | $clef = $this->config->getSystemValue('gss.jwt.key', ''); |
@@ -467,7 +467,7 @@ |
||
| 467 | 467 | /** |
| 468 | 468 | * @param string $type |
| 469 | 469 | * |
| 470 | - * @return array|bool|mixed |
|
| 470 | + * @return string |
|
| 471 | 471 | * @throws GSStatusException |
| 472 | 472 | */ |
| 473 | 473 | public function getGSStatus(string $type = '') { |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | /** |
| 409 | - * @return string |
|
| 409 | + * @return integer |
|
| 410 | 410 | */ |
| 411 | 411 | public function getType() { |
| 412 | 412 | return $this->type; |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | } |
| 461 | 461 | |
| 462 | 462 | /** |
| 463 | - * @return array |
|
| 463 | + * @return Member[] |
|
| 464 | 464 | */ |
| 465 | 465 | public function getGroups() { |
| 466 | 466 | return $this->groups; |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | /** |
| 481 | - * @return array |
|
| 481 | + * @return FederatedLink[] |
|
| 482 | 482 | */ |
| 483 | 483 | public function getLinks() { |
| 484 | 484 | return $this->links; |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | // } |
| 515 | 515 | |
| 516 | 516 | /** |
| 517 | - * @param integer|string $type |
|
| 517 | + * @param string $type |
|
| 518 | 518 | * |
| 519 | 519 | * @return integer |
| 520 | 520 | */ |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | $circle = $this->circlesRequest->forceGetCircle($circleId); |
| 88 | 88 | |
| 89 | - echo json_encode($circle, JSON_PRETTY_PRINT) . "\n"; |
|
| 89 | + echo json_encode($circle, JSON_PRETTY_PRINT)."\n"; |
|
| 90 | 90 | |
| 91 | 91 | return 0; |
| 92 | 92 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | $circles = $this->getCircles($owner, $viewer); |
| 98 | 98 | |
| 99 | 99 | if ($json) { |
| 100 | - echo json_encode($circles, JSON_PRETTY_PRINT) . "\n"; |
|
| 100 | + echo json_encode($circles, JSON_PRETTY_PRINT)."\n"; |
|
| 101 | 101 | |
| 102 | 102 | return 0; |
| 103 | 103 | } |