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.

Code Duplication    Length = 41-51 lines in 2 locations

src/app/Notifications/ResetPassword.php 1 location

@@ 8-48 (lines=41) @@
5
use Illuminate\Notifications\Notification;
6
use Illuminate\Notifications\Messages\MailMessage;
7
8
class ResetPassword extends Notification
9
{
10
    /**
11
     * The password reset token.
12
     *
13
     * @var string
14
     */
15
    public $token;
16
17
    /**
18
     * Create a notification instance.
19
     *
20
     * @param  string $token
21
     */
22
    public function __construct($token)
23
    {
24
        $this->token = $token;
25
    }
26
27
    /**
28
     * Get the notification's channels.
29
     *
30
     * @param  mixed  $notifiable
31
     * @return array|string
32
     */
33
    public function via($notifiable)
34
    {
35
        return ['mail'];
36
    }
37
38
    /**
39
     * Build the mail representation of the notification.
40
     *
41
     * @param  mixed  $notifiable
42
     * @return \Illuminate\Notifications\Messages\MailMessage
43
     */
44
    public function toMail($notifiable)
45
    {
46
        return (new MailMessage)->markdown('back-project::mail.'.app()->getLocale().'.user.reset_password', ['token' => $this->token]);        
47
    }
48
}
49

src/app/Notifications/RegistrationEmail.php 1 location

@@ 9-59 (lines=51) @@
6
use Illuminate\Notifications\Notification;
7
use Illuminate\Notifications\Messages\MailMessage;
8
9
class RegistrationEmail extends Notification
10
{
11
    use Queueable;
12
13
    public $user;
14
15
    /**
16
     * Create a new notification instance.
17
     *
18
     * @return void
19
     */
20
    public function __construct($user)
21
    {
22
        $this->user = $user;
23
    }
24
25
    /**
26
     * Get the notification's delivery channels.
27
     *
28
     * @param  mixed  $notifiable
29
     * @return string[]
30
     */
31
    public function via($notifiable)
32
    {
33
        return ['mail'];
34
    }
35
36
    /**
37
     * Get the mail representation of the notification.
38
     *
39
     * @param  mixed  $notifiable
40
     * @return \Illuminate\Notifications\Messages\MailMessage
41
     */
42
    public function toMail($notifiable)
43
    {
44
        return (new MailMessage)->markdown('back-project::mail.'.app()->getLocale().'.user.registration', ['user' => $this->user]);
45
    }
46
47
    /**
48
     * Get the array representation of the notification.
49
     *
50
     * @param  mixed  $notifiable
51
     * @return array
52
     */
53
    public function toArray($notifiable)
54
    {
55
        return [
56
            //
57
        ];
58
    }
59
}
60