| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function toMail($notifiable) |
||
| 50 | { |
||
| 51 | $url = route('discuss.show', ['channel'=>$this->reply->thread->channel->slug, 'thread'=>$this->reply->thread]); |
||
| 52 | |||
| 53 | return (new MailMessage) |
||
| 54 | ->subject($this->msg) |
||
| 55 | ->markdown('discuss::emails.newreply',['reply'=>$this->reply,'thread'=>$this->reply->thread, 'url'=>$url]); |
||
| 56 | |||
| 57 | } |
||
| 58 | |||
| 72 |
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.