Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
32 | public function send($notifiable, Notification $notification) |
||
33 | { |
||
34 | if (! $channel = $notifiable->routeNotificationFor('discord')) { |
||
35 | return; |
||
36 | } |
||
37 | |||
38 | $message = $notification->toDiscord($notifiable); |
||
39 | |||
40 | return $this->discord->send($channel, [ |
||
41 | 'content' => $message->body, |
||
42 | 'embed' => $message->embed, |
||
43 | ]); |
||
44 | } |
||
45 | } |
||
46 |