Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
28 | View Code Duplication | 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 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.