@@ -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', ''); |
@@ -440,6 +440,7 @@ |
||
440 | 440 | * @param string $type |
441 | 441 | * |
442 | 442 | * @throws GSStatusException |
443 | + * @return string |
|
443 | 444 | */ |
444 | 445 | public function getGSStatus(string $type = '') { |
445 | 446 | $enabled = $this->config->getSystemValueBool('gs.enabled', false); |
@@ -98,7 +98,7 @@ |
||
98 | 98 | RequestServerException | |
99 | 99 | RequestResultNotJsonException $e |
100 | 100 | ) { |
101 | - $this->miscService->log('Issue while retrieving instances from lookup: ' . $e->getMessage()); |
|
101 | + $this->miscService->log('Issue while retrieving instances from lookup: '.$e->getMessage()); |
|
102 | 102 | |
103 | 103 | return []; |
104 | 104 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $this->miscService = OC::$server->query(MiscService::class); |
146 | 146 | } catch (QueryException $e) { |
147 | 147 | OC::$server->getLogger() |
148 | - ->log(1, 'Circles: cannot init FileSharingBroadcaster - ' . $e->getMessage()); |
|
148 | + ->log(1, 'Circles: cannot init FileSharingBroadcaster - '.$e->getMessage()); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | try { |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | * @throws IllegalIDChangeException |
323 | 323 | */ |
324 | 324 | private function generateShare($data): IShare { |
325 | - $this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data)); |
|
325 | + $this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data)); |
|
326 | 326 | |
327 | 327 | $share = new Share($this->rootFolder, $this->userManager); |
328 | 328 | $share->setId($data['id']); |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | ); |
414 | 414 | } catch (Exception $e) { |
415 | 415 | OC::$server->getLogger() |
416 | - ->log(1, 'Circles::sharedByMail - mail were not sent: ' . $e->getMessage()); |
|
416 | + ->log(1, 'Circles::sharedByMail - mail were not sent: '.$e->getMessage()); |
|
417 | 417 | } |
418 | 418 | } |
419 | 419 | |
@@ -431,8 +431,8 @@ discard block |
||
431 | 431 | $message = $this->mailer->createMessage(); |
432 | 432 | |
433 | 433 | $this->logger->log( |
434 | - 0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName |
|
435 | - . ' - link: ' . $link |
|
434 | + 0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName |
|
435 | + . ' - link: '.$link |
|
436 | 436 | ); |
437 | 437 | |
438 | 438 | $subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]); |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | |
472 | 472 | $message = $this->mailer->createMessage(); |
473 | 473 | |
474 | - $this->logger->log(0, "Sending password mail to circle '" . $circleName . "': " . $email); |
|
474 | + $this->logger->log(0, "Sending password mail to circle '".$circleName."': ".$email); |
|
475 | 475 | |
476 | 476 | $filename = $share->getNode() |
477 | 477 | ->getName(); |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
527 | 527 | if ($initiatorEmailAddress !== null) { |
528 | 528 | $message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]); |
529 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
529 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
530 | 530 | } else { |
531 | 531 | $emailTemplate->addFooter(); |
532 | 532 | } |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | $emailTemplate->addHeader(); |
562 | 562 | $emailTemplate->addHeading($subject, false); |
563 | 563 | $emailTemplate->addBodyText( |
564 | - htmlspecialchars($text) . '<br>' . htmlspecialchars( |
|
564 | + htmlspecialchars($text).'<br>'.htmlspecialchars( |
|
565 | 565 | $this->l10n->t('Click the button below to open it.') |
566 | 566 | ), $text |
567 | 567 | ); |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | $this->sendMailExistingShares($template, $author, $recipient); |
607 | 607 | $this->sendPasswordExistingShares($author, $recipient, $password); |
608 | 608 | } catch (Exception $e) { |
609 | - $this->logger->log(2, 'Failed to send mail about existing share ' . $e->getMessage()); |
|
609 | + $this->logger->log(2, 'Failed to send mail about existing share '.$e->getMessage()); |
|
610 | 610 | } |
611 | 611 | } |
612 | 612 | |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
631 | 631 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
632 | 632 | |
633 | - $this->logger->log(0, "Sending password mail about existing files to '" . $email . "'"); |
|
633 | + $this->logger->log(0, "Sending password mail about existing files to '".$email."'"); |
|
634 | 634 | |
635 | 635 | $plainBodyPart = $this->l10n->t( |
636 | 636 | "%1\$s shared multiple files with you.\nYou should have already received a separate mail with a link to access them.\n", |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
673 | 673 | if ($authorEmail !== null) { |
674 | 674 | $message->setReplyTo([$authorEmail => $authorName]); |
675 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
675 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
676 | 676 | } else { |
677 | 677 | $emailTemplate->addFooter(); |
678 | 678 | } |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | */ |
720 | 720 | protected function generateMailExitingShares($author, $circleName) { |
721 | 721 | $this->logger->log( |
722 | - 0, "Generating mail about existing share mail from '" . $author . "' in " |
|
722 | + 0, "Generating mail about existing share mail from '".$author."' in " |
|
723 | 723 | . $circleName |
724 | 724 | ); |
725 | 725 |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | * @param Circle $circle |
345 | 345 | * @param IShare $share |
346 | 346 | * @param string $address |
347 | - * @param string $token |
|
347 | + * @param SharesToken $token |
|
348 | 348 | * |
349 | 349 | * @return bool |
350 | 350 | */ |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | * @param $fileName |
428 | 428 | * @param string $link |
429 | 429 | * @param string $author |
430 | - * @param $circleName |
|
430 | + * @param string $circleName |
|
431 | 431 | * @param string $email |
432 | 432 | * |
433 | 433 | * @throws Exception |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * @param string $circleName |
465 | 465 | * @param string $email |
466 | 466 | * |
467 | - * @param $password |
|
467 | + * @param string $password |
|
468 | 468 | * |
469 | 469 | * @throws NotFoundException |
470 | 470 | * @throws Exception |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | * @param $subject |
547 | 547 | * @param $text |
548 | 548 | * @param $fileName |
549 | - * @param $link |
|
549 | + * @param string $link |
|
550 | 550 | * @param string $author |
551 | 551 | * @param string $circleName |
552 | 552 | * |
@@ -618,10 +618,10 @@ discard block |
||
618 | 618 | |
619 | 619 | |
620 | 620 | /** |
621 | - * @param $author |
|
621 | + * @param string $author |
|
622 | 622 | * @param string $email |
623 | 623 | * |
624 | - * @param $password |
|
624 | + * @param string $password |
|
625 | 625 | * |
626 | 626 | * @throws Exception |
627 | 627 | */ |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | |
716 | 716 | |
717 | 717 | /** |
718 | - * @param $author |
|
718 | + * @param string $author |
|
719 | 719 | * @param string $circleName |
720 | 720 | * |
721 | 721 | * @return IEMailTemplate |
@@ -758,8 +758,8 @@ discard block |
||
758 | 758 | |
759 | 759 | /** |
760 | 760 | * @param IEMailTemplate $emailTemplate |
761 | - * @param $author |
|
762 | - * @param $recipient |
|
761 | + * @param string $author |
|
762 | + * @param string $recipient |
|
763 | 763 | * |
764 | 764 | * @throws Exception |
765 | 765 | */ |
@@ -40,7 +40,7 @@ |
||
40 | 40 | use OCP\AppFramework\QueryException; |
41 | 41 | use OCP\Util; |
42 | 42 | |
43 | -require_once __DIR__ . '/../../appinfo/autoload.php'; |
|
43 | +require_once __DIR__.'/../../appinfo/autoload.php'; |
|
44 | 44 | |
45 | 45 | |
46 | 46 | class Application extends App { |
@@ -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 | */ |
@@ -91,7 +91,7 @@ |
||
91 | 91 | $wrappers = $this->gsUpstreamService->getEventsByToken($token); |
92 | 92 | } catch (Exception $e) { |
93 | 93 | $this->miscService->log( |
94 | - 'exception during async: ' . ['token' => $token, 'error' => $e->getMessage()] |
|
94 | + 'exception during async: '.['token' => $token, 'error' => $e->getMessage()] |
|
95 | 95 | ); |
96 | 96 | $this->fail(['token' => $token, 'error' => $e->getMessage()]); |
97 | 97 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | use OCA\Circles\AppInfo\Application; |
32 | 32 | |
33 | 33 | |
34 | -require_once __DIR__ . '/autoload.php'; |
|
34 | +require_once __DIR__.'/autoload.php'; |
|
35 | 35 | |
36 | 36 | |
37 | 37 | /** @var Application $app */ |