| Conditions | 3 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function store(Kernel $kernel, Dispatcher $events, Request $request) |
||
| 16 | { |
||
| 17 | $driver = $kernel->getChannel()->getDriver(); |
||
| 18 | |||
| 19 | // If driver supports webhook verification |
||
| 20 | // We need to check if current request belongs to verification process |
||
| 21 | if ($driver instanceof WebhookVerification && $driver->isVerificationRequest($request)) { |
||
| 22 | return $driver->verifyWebhook($request); |
||
| 23 | } |
||
| 24 | |||
| 25 | // Resolve event from driver and dispatch it |
||
| 26 | $events->dispatch( |
||
| 27 | $event = $driver->createEvent($request) |
||
| 28 | ); |
||
| 29 | |||
| 30 | return $driver->createResponse($request, $event); |
||
|
|
|||
| 31 | } |
||
| 33 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.