| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function toMail( |
||
| 45 | /** @scrutinizer ignore-unused */ |
||
| 46 | $notifiable) |
||
| 47 | { |
||
| 48 | return (new MailMessage) |
||
| 49 | ->greeting('Hello '.$this->user->full_name) |
||
| 50 | ->line('A new '.config('app.name').' account has been created for you.') |
||
| 51 | ->line('Your new username is: **'.$this->user->username.'**') |
||
| 52 | ->line('You can click the link below to finsh setting up your account.') |
||
| 53 | ->action('Setup Account', url(route('initialize', $this->hash))); |
||
| 54 | } |
||
| 55 | |||
| 71 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.