Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function send($notifiable, Notification $notification) |
||
23 | { |
||
24 | if (! $to = $notifiable->routeNotificationFor('textlocal')) { |
||
25 | return; |
||
26 | } |
||
27 | |||
28 | $message = $notification->toTextlocal($notifiable); |
||
29 | |||
30 | if (is_string($message)) { |
||
31 | $message = new TextlocalMessage($message); |
||
32 | } |
||
33 | |||
34 | return $this->textlocal->message($to, $message); |
||
35 | } |
||
37 |