| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function send($notifiable, Notification $notification) |
||
| 26 | { |
||
| 27 | |||
| 28 | if (! $to = $notifiable->routeNotificationFor('panaceamobile')) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $message = $notification->toPanaceaMobile($notifiable); |
||
| 33 | |||
| 34 | if (is_string($message)) { |
||
| 35 | $message = new PanaceaMobileMessage($message); |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->panacea->send($to, $message->toArray()); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |