for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lyal\Checkr\Laravel\Helpers;
use Lyal\Checkr\Exceptions\UnhandledCheckrWebhook;
class EventHelper
{
private $event;
public function __construct($event)
$this->event = $event;
}
public function dispatch()
$className = '\\Lyal\\Checkr\\Laravel\\Events\\'.studly_case(str_replace('.', '-', $this->event['type']));
if (class_exists($className)) {
event(new $className($this->event));
event
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
} else {
throw new UnhandledCheckrWebhook($this->event);
public function getEventHandler()