Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 5 | protected function handleEvent(Event $event): void |
|
43 | { |
||
44 | 5 | GoCardlessWebhookEventReceived::dispatch($event); |
|
45 | |||
46 | 5 | $jobClass = GoCardlessPayment::getWebhookJob("{$event->resource_type}.{$event->action}"); |
|
47 | 5 | if ($jobClass) { |
|
48 | 5 | $jobClass::dispatch($event)->onQueue(config('gocardless-payment.queue')); |
|
49 | } |
||
52 |