| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 32 | protected function doSend(Notification $notification): void  | 
            ||
| 33 |     { | 
            ||
| 34 | /** @var SlackChannelDestination $destination */  | 
            ||
| 35 | $destination = $notification->destination();  | 
            ||
| 36 | $text = $notification->subject()->subject()."\n\n";  | 
            ||
| 37 | $text .= $notification->body()->body();  | 
            ||
| 38 | $message = new Message($this->client);  | 
            ||
| 39 | $message->setAllowMarkdown(true);  | 
            ||
| 40 | $message->setText($text);  | 
            ||
| 41 | $message->setChannel($destination->channel());  | 
            ||
| 42 |         try { | 
            ||
| 43 | $message->send();  | 
            ||
| 44 |         } catch (Throwable $e) { | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 45 | throw new NotificationNotSentException($notification, $e);  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 | |||
| 57 |