| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function send($notifiable, Notification $notification) |
||
| 38 | { |
||
| 39 | if (! $authyId = $notifiable->routeNotificationFor('authy')) { |
||
| 40 | return false; |
||
| 41 | } |
||
| 42 | |||
| 43 | // Prepare notification message |
||
| 44 | $message = $notification->toAuthy($notifiable); |
||
| 45 | |||
| 46 | // Send Authy notification and get the result |
||
| 47 | $result = $this->authyToken->send($authyId, $message->method, $message->force, $message->action, $message->actionMessage); |
||
| 48 | |||
| 49 | return $result->succeed(); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |