for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OwenIt\Auditing\Listeners;
use OwenIt\Auditing\Facades\Auditor;
use Illuminate\Support\Facades\Config;
use OwenIt\Auditing\Events\DispatchAudit;
use Illuminate\Contracts\Queue\ShouldQueue;
class ProcessDispatchAudit implements ShouldQueue
{
public function viaConnection(): string
return Config::get('audit.queue.connection', 'sync');
}
public function viaQueue(): string
return Config::get('audit.queue.queue', 'default');
public function withDelay(DispatchAudit $event): int
$event
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function withDelay(/** @scrutinizer ignore-unused */ DispatchAudit $event): int
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return Config::get('audit.queue.delay', 0);
public function handle(DispatchAudit $event)
Auditor::execute($event->model);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.