@@ -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 | } |
@@ -339,10 +339,10 @@ discard block |
||
| 339 | 339 | |
| 340 | 340 | try { |
| 341 | 341 | if ($member->getSingleId() !== '') { |
| 342 | - $userId = $member->getSingleId() . '@' . $member->getInstance(); |
|
| 342 | + $userId = $member->getSingleId().'@'.$member->getInstance(); |
|
| 343 | 343 | $federatedUser = $this->federatedUserService->getFederatedUser($userId, Member::TYPE_SINGLE); |
| 344 | 344 | } else { |
| 345 | - $userId = $member->getUserId() . '@' . $member->getInstance(); |
|
| 345 | + $userId = $member->getUserId().'@'.$member->getInstance(); |
|
| 346 | 346 | $federatedUser = $this->federatedUserService->getFederatedUser( |
| 347 | 347 | $userId, |
| 348 | 348 | $member->getUserType() |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | $this->sendMailInvitation($template, $author, $recipientMail, $circleName); |
| 470 | 470 | } catch (Exception $e) { |
| 471 | 471 | // FIXME |
| 472 | - $this->miscService->log('Failed to send invitation mail ' . $e->getMessage()); |
|
| 472 | + $this->miscService->log('Failed to send invitation mail '.$e->getMessage()); |
|
| 473 | 473 | } |
| 474 | 474 | } |
| 475 | 475 | |