Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 2 | public function toMail(User $user): MailMessage |
|
29 | { |
||
30 | 2 | $url = app(UrlGenerator::class)->to('invitation/accept/' . $this->token, [ |
|
31 | 2 | 'email' => $user->getEmailForPasswordReset(), |
|
32 | ]); |
||
33 | |||
34 | 2 | return (new MailMessage()) |
|
35 | 2 | ->subject(Lang::get('Account Invitation Notification')) |
|
36 | 2 | ->line(Lang::get('You are receiving this email because an account was created for you.')) |
|
37 | 2 | ->action(Lang::get('Activate account'), $url) |
|
38 | 2 | ->line(Lang::get('This invitation email will expire in :count hours.', ['count' => config('auth.passwords.user-invitations.expire') / 60])); |
|
39 | } |
||
41 |