Code Duplication    Length = 10-10 lines in 2 locations

src/app/Models/BackpackUser.php 1 location

@@ 28-37 (lines=10) @@
25
     *
26
     * @return \Illuminate\Notifications\Messages\MailMessage
27
     */
28
    public function toMail($notifiable)
29
    {
30
        return (new MailMessage())
31
            ->line([
32
                'You are receiving this email because we received a password reset request for your account.',
33
                'Click the button below to reset your password:',
34
            ])
35
            ->action('Reset Password', url(config('backpack.base.route_prefix').'/password/reset', $this->token))
36
            ->line('If you did not request a password reset, no further action is required.');
37
    }
38
}
39

src/app/Notifications/ResetPasswordNotification.php 1 location

@@ 16-25 (lines=10) @@
13
     *
14
     * @return \Illuminate\Notifications\Messages\MailMessage
15
     */
16
    public function toMail($notifiable)
17
    {
18
        return (new MailMessage())
19
            ->line([
20
                'You are receiving this email because we received a password reset request for your account.',
21
                'Click the button below to reset your password:',
22
            ])
23
            ->action('Reset Password', url(config('backpack.base.route_prefix').'/password/reset', $this->token))
24
            ->line('If you did not request a password reset, no further action is required.');
25
    }
26
}
27