| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 16 | protected function sendNotification(Notification $notification) | ||
| 17 |     { | ||
| 18 |         if (empty(config('api-health.notifications.via'))) { | ||
| 19 | return; | ||
| 20 | } | ||
| 21 | |||
| 22 |         return tap($notification, function ($notification) { | ||
| 23 |             app(config('api-health.notifications.notifiable'))->notify($notification); | ||
| 24 | }); | ||
| 25 | } | ||
| 26 | } | ||
| 27 |