GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 701ee8...c3fca5 )
by Tharindu
15:31 queued 11:57
created

MailResetPasswordToken   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 11
c 1
b 0
f 1
dl 0
loc 37
ccs 0
cts 12
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A toMail() 0 8 1
A via() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Notifications;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Notifications\Notification;
7
use Illuminate\Notifications\Messages\MailMessage;
8
9
class MailResetPasswordToken extends Notification
10
{
11
    use Queueable;
12
13
    public $token;
14
15
    /**
16
     * Create a new notification instance.
17
     */
18
    public function __construct($token)
19
    {
20
        $this->token = $token;
21
    }
22
23
    /**
24
     * Get the notification's delivery channels.
25
     *
26
     * @return array
27
     */
28
    public function via()
29
    {
30
        return ['mail'];
31
    }
32
33
    /**
34
     * Get the mail representation of the notification.
35
     *
36
     * @return \Illuminate\Notifications\Messages\MailMessage
37
     */
38
    public function toMail()
39
    {
40
        return (new MailMessage())
41
            ->subject('Reset your password')
42
            ->line('You are receiving this email because we received a password reset request for your account.')
43
            ->line('Copy the code below.')
44
            ->line($this->token)
45
            ->line('If you did not request a password reset, no further action is required.');
46
    }
47
}
48