| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function toMail($notifiable) |
||
| 42 | { |
||
| 43 | $param = [ |
||
| 44 | 'id' => $notifiable->getKey(), |
||
| 45 | 'hash' => sha1($notifiable->getEmailForVerification()), |
||
| 46 | ]; |
||
| 47 | |||
| 48 | $url = env('FRONTEND_URL').'/verify-email?'; |
||
| 49 | |||
| 50 | foreach ($param as $key => $params) { |
||
| 51 | $url .= "{$key}={$params}&"; |
||
| 52 | } |
||
| 53 | |||
| 54 | return (new MailMessage) |
||
| 55 | ->line('THE VERIFY EMAIL') |
||
| 56 | ->action('Verify email', $url) |
||
| 57 | ->line('Thank you for using our application!'); |
||
| 58 | } |
||
| 73 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.