@@ -102,7 +102,7 @@ |
||
| 102 | 102 | * </pre> |
| 103 | 103 | * |
| 104 | 104 | * @param string $subject |
| 105 | - * @param bool|mixed $translate |
|
| 105 | + * @param string $translate |
|
| 106 | 106 | * |
| 107 | 107 | * @since 0.19 |
| 108 | 108 | * @since 0.29 Add sprintf support for translation |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | public function __construct($options, $mailService, $coreOptions) |
| 41 | 41 | { |
| 42 | - $this->options=$options; |
|
| 43 | - $this->mailService=$mailService; |
|
| 42 | + $this->options = $options; |
|
| 43 | + $this->mailService = $mailService; |
|
| 44 | 44 | $this->coreOptions = $coreOptions; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -51,15 +51,15 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function __invoke(AuthEvent $e) |
| 53 | 53 | { |
| 54 | - $siteName=$this->coreOptions->getSiteName(); |
|
| 54 | + $siteName = $this->coreOptions->getSiteName(); |
|
| 55 | 55 | |
| 56 | 56 | $user = $e->getUser(); |
| 57 | 57 | $userEmail = $user->info->email; |
| 58 | 58 | $userName = $user->info->getDisplayName(false); |
| 59 | 59 | $resetLink = $e->getResetLink(); |
| 60 | 60 | |
| 61 | - $fromEmail = $this->options->getFromEmail(); |
|
| 62 | - $fromName = $this->options->getFromName(); |
|
| 61 | + $fromEmail = $this->options->getFromEmail(); |
|
| 62 | + $fromName = $this->options->getFromName(); |
|
| 63 | 63 | |
| 64 | 64 | $mail = $this->mailService->get('htmltemplate'); |
| 65 | 65 | $mail->user = $user; |