ResetPasswordNotification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toMail() 0 6 1
1
<?php
2
3
namespace Distilleries\Expendable\Mails;
4
5
use Illuminate\Auth\Notifications\ResetPassword;
6
use Illuminate\Notifications\Messages\MailMessage;
7
8
/**
9
 * Created by PhpStorm.
10
 * User: mfrancois
11
 * Date: 27/02/2017
12
 * Time: 18:01
13
 */
14
class ResetPasswordNotification extends ResetPassword
15
{
16
17
    /**
18
     * Build the mail representation of the notification.
19
     *
20
     * @param  mixed  $notifiable
21
     * @return \Illuminate\Notifications\Messages\MailMessage
22
     */
23 2
    public function toMail($notifiable)
24
    {
25 2
        return (new MailMessage)
26 2
            ->line('You are receiving this email because we received a password reset request for your account.')
27 2
            ->action('Reset Password', url('login/reset', $this->token))
28 2
            ->line('If you did not request a password reset, no further action is required.');
29
    }
30
31
}