Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function send($notifiable, Notification $notification) |
||
31 | { |
||
32 | if (!$recipient = $notifiable->routeNotificationFor('Cmsms')) { |
||
33 | return; |
||
34 | } |
||
35 | |||
36 | $message = $notification->toCmsms($notifiable); |
||
|
|||
37 | |||
38 | if (is_string($message)) { |
||
39 | $message = CmsmsMessage::create($message); |
||
40 | } |
||
41 | |||
42 | $this->client->send($message, $recipient); |
||
43 | } |
||
45 |