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