@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | /** @var ConfigService */ |
129 | 129 | protected $configService; |
130 | 130 | |
131 | - /** @var ContactService */ |
|
132 | - private $contactService; |
|
131 | + /** @var ContactService */ |
|
132 | + private $contactService; |
|
133 | 133 | |
134 | 134 | /** @var IL10N */ |
135 | 135 | private $l10n = null; |
@@ -525,17 +525,17 @@ discard block |
||
525 | 525 | $this->federatedUserService->confirmSingleIdUniqueness($patron); |
526 | 526 | } |
527 | 527 | |
528 | - /** |
|
529 | - * @param string $contactId |
|
530 | - * |
|
531 | - * @return array |
|
532 | - */ |
|
533 | - private function getMailsFromContact(string $contactId): array { |
|
534 | - $contact = MiscService::getContactData($contactId); |
|
535 | - if (!key_exists('EMAIL', $contact)) { |
|
536 | - return []; |
|
537 | - } |
|
538 | - |
|
539 | - return $contact['EMAIL']; |
|
540 | - } |
|
528 | + /** |
|
529 | + * @param string $contactId |
|
530 | + * |
|
531 | + * @return array |
|
532 | + */ |
|
533 | + private function getMailsFromContact(string $contactId): array { |
|
534 | + $contact = MiscService::getContactData($contactId); |
|
535 | + if (!key_exists('EMAIL', $contact)) { |
|
536 | + return []; |
|
537 | + } |
|
538 | + |
|
539 | + return $contact['EMAIL']; |
|
540 | + } |
|
541 | 541 | } |
@@ -346,15 +346,15 @@ |
||
346 | 346 | $template = $this->generateMailInvitation($author, $circleName); |
347 | 347 | $this->sendMailInvitation($template, $author, $mails, $circleName); |
348 | 348 | } catch (Exception $e) { |
349 | - $this->miscService->log('Failed to send invitation mail ' . $e->getMessage()); |
|
349 | + $this->miscService->log('Failed to send invitation mail '.$e->getMessage()); |
|
350 | 350 | } |
351 | 351 | |
352 | 352 | try { |
353 | 353 | if ($member->getSingleId() !== '') { |
354 | - $userId = $member->getSingleId() . '@' . $member->getInstance(); |
|
354 | + $userId = $member->getSingleId().'@'.$member->getInstance(); |
|
355 | 355 | $federatedUser = $this->federatedUserService->getFederatedUser($userId, Member::TYPE_SINGLE); |
356 | 356 | } else { |
357 | - $userId = $member->getUserId() . '@' . $member->getInstance(); |
|
357 | + $userId = $member->getUserId().'@'.$member->getInstance(); |
|
358 | 358 | $federatedUser = $this->federatedUserService->getFederatedUser( |
359 | 359 | $userId, |
360 | 360 | $member->getUserType() |