Code Duplication    Length = 10-10 lines in 2 locations

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

src/app/Models/BackpackUser.php 1 location

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