Test Setup Failed
Push — master ( fd6859...9ae6dd )
by Adam
13:36
created

ResetPasswordNotification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 6
c 2
b 1
f 0
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toMail() 0 7 1
1
<?php
2
3
namespace App\Notifications;
4
5
use Illuminate\Notifications\Messages\MailMessage;
6
7
class ResetPasswordNotification extends \Illuminate\Auth\Notifications\ResetPassword
8
{
9
    /**
10
     * Get the mail representation of the notification.
11
     *
12
     * @param mixed $notifiable
13
     *
14
     * @return \Illuminate\Notifications\Messages\MailMessage
15
     */
16 1
    public function toMail($notifiable)
17
    {
18 1
        return (new MailMessage())
19 1
            ->subject(trans('passwords.mail_subject'))
20 1
            ->line(trans('passwords.mail_line_1'))
21 1
            ->action(trans('passwords.reset_password'), url(config('app.url').route('password.reset', [$this->token], false)))
22 1
            ->line(trans('passwords.mail_line_2'));
23
    }
24
}
25