| Conditions | 2 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function handle(Request $request) |
||
| 23 | { |
||
| 24 | try { |
||
| 25 | $webhook = Webhook::fromRequest($request); |
||
| 26 | |||
| 27 | Event::dispatch($webhook->eventName(), $webhook); |
||
| 28 | |||
| 29 | return new JsonResponse(); |
||
| 30 | } catch (Exception $e) { |
||
| 31 | Log::error($e->getMessage()); |
||
| 32 | |||
| 33 | return new Response('Error handling webhook', 500); |
||
| 34 | } |
||
| 37 |