PasswordChange   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 10
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toMail() 0 8 1
1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter\Notifications;
4
5
use Illuminate\Notifications\Messages\MailMessage;
6
7
class PasswordChange extends UserNotification
8
{
9
    public function toMail($notifiable)
10
    {
11
        return (new MailMessage)
12
            ->subject(trans('sanctumauthstarter::notify.password.subject'))
13
            ->line(trans('sanctumauthstarter::notify.password.introduction'))
14
            ->line(trans('sanctumauthstarter::notify.password.message'))
15
            ->action(trans('sanctumauthstarter::notify.password.action'), route(config('sanctumauthstarter.notification_url.password.password_change')))
16
            ->line(trans('sanctumauthstarter::notify.password.complimentary_close'));
17
    }
18
}
19