Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 2 | public function send($notifiable, Notification $notification) |
|
22 | { |
||
23 | 2 | $to = $notifiable->routeNotificationFor('JetSms'); |
|
24 | |||
25 | 2 | if (empty($to)) { |
|
26 | 1 | throw CouldNotSendNotification::missingRecipient(); |
|
27 | } |
||
28 | |||
29 | 1 | $message = $notification->toJetSms($notifiable); |
|
30 | |||
31 | 1 | JetSms::sendShortMessage($to, $message); |
|
32 | 1 | } |
|
33 | } |
||
34 |