@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $this->miscService = OC::$server->query(MiscService::class); |
133 | 133 | } catch (QueryException $e) { |
134 | 134 | OC::$server->getLogger() |
135 | - ->log(1, 'Circles: cannot init FileSharingBroadcaster - ' . $e->getMessage()); |
|
135 | + ->log(1, 'Circles: cannot init FileSharingBroadcaster - '.$e->getMessage()); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | try { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | * @throws IllegalIDChangeException |
326 | 326 | */ |
327 | 327 | private function generateShare($data): IShare { |
328 | - $this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data)); |
|
328 | + $this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data)); |
|
329 | 329 | |
330 | 330 | $share = new Share($this->rootFolder, $this->userManager); |
331 | 331 | $share->setId($data['id']); |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | $this->sendPasswordByMail($share, $displayName, $email, $password); |
419 | 419 | } catch (Exception $e) { |
420 | 420 | OC::$server->getLogger() |
421 | - ->log(1, 'Circles::sharedByMail - mail were not sent: ' . $e->getMessage()); |
|
421 | + ->log(1, 'Circles::sharedByMail - mail were not sent: '.$e->getMessage()); |
|
422 | 422 | } |
423 | 423 | } |
424 | 424 | |
@@ -436,8 +436,8 @@ discard block |
||
436 | 436 | $message = $this->mailer->createMessage(); |
437 | 437 | |
438 | 438 | $this->logger->log( |
439 | - 0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName |
|
440 | - . ' - link: ' . $link |
|
439 | + 0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName |
|
440 | + . ' - link: '.$link |
|
441 | 441 | ); |
442 | 442 | |
443 | 443 | $subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]); |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | |
477 | 477 | $message = $this->mailer->createMessage(); |
478 | 478 | |
479 | - $this->logger->log(0, "Sending password mail to circle '" . $circleName . "': " . $email); |
|
479 | + $this->logger->log(0, "Sending password mail to circle '".$circleName."': ".$email); |
|
480 | 480 | |
481 | 481 | $filename = $share->getNode() |
482 | 482 | ->getName(); |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
532 | 532 | if ($initiatorEmailAddress !== null) { |
533 | 533 | $message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]); |
534 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
534 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
535 | 535 | } else { |
536 | 536 | $emailTemplate->addFooter(); |
537 | 537 | } |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | $emailTemplate->addHeader(); |
567 | 567 | $emailTemplate->addHeading($subject, false); |
568 | 568 | $emailTemplate->addBodyText( |
569 | - htmlspecialchars($text) . '<br>' . htmlspecialchars( |
|
569 | + htmlspecialchars($text).'<br>'.htmlspecialchars( |
|
570 | 570 | $this->l10n->t('Click the button below to open it.') |
571 | 571 | ), $text |
572 | 572 | ); |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | $this->sendMailExistingShares($template, $author->getCachedName(), $recipient); |
613 | 613 | $this->sendPasswordExistingShares($author, $recipient, $password); |
614 | 614 | } catch (Exception $e) { |
615 | - $this->logger->log(2, 'Failed to send mail about existing share ' . $e->getMessage()); |
|
615 | + $this->logger->log(2, 'Failed to send mail about existing share '.$e->getMessage()); |
|
616 | 616 | } |
617 | 617 | } |
618 | 618 | |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
636 | 636 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
637 | 637 | |
638 | - $this->logger->log(0, "Sending password mail about existing files to '" . $email . "'"); |
|
638 | + $this->logger->log(0, "Sending password mail about existing files to '".$email."'"); |
|
639 | 639 | |
640 | 640 | $plainBodyPart = $this->l10n->t( |
641 | 641 | "%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n", |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
678 | 678 | if ($authorEmail !== null) { |
679 | 679 | $message->setReplyTo([$authorEmail => $authorName]); |
680 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
680 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
681 | 681 | } else { |
682 | 682 | $emailTemplate->addFooter(); |
683 | 683 | } |
@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | */ |
723 | 723 | protected function generateMailExitingShares($author, $circleName) { |
724 | 724 | $this->logger->log( |
725 | - 0, "Generating mail about existing share mail from '" . $author . "' in " |
|
725 | + 0, "Generating mail about existing share mail from '".$author."' in " |
|
726 | 726 | . $circleName |
727 | 727 | ); |
728 | 728 |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $this->sendMailExistingShares($template, $author, $recipient); |
243 | 243 | $this->sendPasswordExistingShares($author, $recipient, $password); |
244 | 244 | } catch (Exception $e) { |
245 | - $this->miscService->log('Failed to send mail about existing share ' . $e->getMessage()); |
|
245 | + $this->miscService->log('Failed to send mail about existing share '.$e->getMessage()); |
|
246 | 246 | } |
247 | 247 | } |
248 | 248 | |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
393 | 393 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
394 | 394 | |
395 | - $this->miscService->log("Sending password mail about existing files to '" . $email . "'", 0); |
|
395 | + $this->miscService->log("Sending password mail about existing files to '".$email."'", 0); |
|
396 | 396 | |
397 | 397 | $plainBodyPart = $this->l10n->t( |
398 | 398 | "%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n", |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
435 | 435 | if ($authorEmail !== null) { |
436 | 436 | $message->setReplyTo([$authorEmail => $authorName]); |
437 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
437 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
438 | 438 | } else { |
439 | 439 | $emailTemplate->addFooter(); |
440 | 440 | } |
@@ -331,10 +331,10 @@ discard block |
||
331 | 331 | protected function generateMember(FederatedEvent $event, Circle $circle, Member $member): Member { |
332 | 332 | try { |
333 | 333 | if ($member->getSingleId() !== '') { |
334 | - $userId = $member->getSingleId() . '@' . $member->getInstance(); |
|
334 | + $userId = $member->getSingleId().'@'.$member->getInstance(); |
|
335 | 335 | $federatedUser = $this->federatedUserService->getFederatedUser($userId, Member::TYPE_SINGLE); |
336 | 336 | } else { |
337 | - $userId = $member->getUserId() . '@' . $member->getInstance(); |
|
337 | + $userId = $member->getUserId().'@'.$member->getInstance(); |
|
338 | 338 | $federatedUser = |
339 | 339 | $this->federatedUserService->getFederatedUser($userId, $member->getUserType()); |
340 | 340 | } |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | $this->sendMailExistingShares($template, $author, $recipient); |
639 | 639 | $this->sendPasswordExistingShares($author, $recipient, $password); |
640 | 640 | } catch (Exception $e) { |
641 | - $this->miscService->log('Failed to send mail about existing share ' . $e->getMessage()); |
|
641 | + $this->miscService->log('Failed to send mail about existing share '.$e->getMessage()); |
|
642 | 642 | } |
643 | 643 | } |
644 | 644 | |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
791 | 791 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
792 | 792 | |
793 | - $this->miscService->log("Sending password mail about existing files to '" . $email . "'", 0); |
|
793 | + $this->miscService->log("Sending password mail about existing files to '".$email."'", 0); |
|
794 | 794 | |
795 | 795 | $plainBodyPart = $this->l10n->t( |
796 | 796 | "%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n", |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
833 | 833 | if ($authorEmail !== null) { |
834 | 834 | $message->setReplyTo([$authorEmail => $authorName]); |
835 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
835 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
836 | 836 | } else { |
837 | 837 | $emailTemplate->addFooter(); |
838 | 838 | } |