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

ResetPasswordNotification::toMail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
ccs 6
cts 6
cp 1
crap 1
rs 10
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