Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function send(Webhook $webhook): void |
||
28 | { |
||
29 | $request = new Request('POST', $webhook->url(), $this->defaultHeaders(), json_encode($webhook->context())); |
||
30 | |||
31 | try { |
||
32 | $response = $this->client->send($request); |
||
|
|||
33 | } catch (GuzzleException $exception) { |
||
34 | throw new WebhookSendingException($exception); |
||
35 | } |
||
46 |