| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 18 | public function webhook(Kernel $kernel, Dispatcher $events): Event  | 
            ||
| 19 |     { | 
            ||
| 20 | $driver = $kernel->getDriver();  | 
            ||
| 21 | |||
| 22 | // If driver supports webhook verification  | 
            ||
| 23 | // We need to check if current request belongs to verification process  | 
            ||
| 24 |         if ($driver instanceof WebhookVerification && $driver->isVerificationRequest()) { | 
            ||
| 25 | return $driver->verifyWebhook();  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | $event = $kernel->getEvent();  | 
            ||
| 29 | |||
| 30 | $events->dispatch($event);  | 
            ||
| 31 | |||
| 32 | return $event;  | 
            ||
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 |