From 4581ec7f178c349fe49cca8a7328f5197c0200db Mon Sep 17 00:00:00 2001 From: Will Power <1619102+willpower232@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:19:20 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20void=20function=20does=20not=20r?= =?UTF-8?q?eturn=20(#987)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AuditableObserver.php | 3 ++- src/Contracts/Auditor.php | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/AuditableObserver.php b/src/AuditableObserver.php index 92bd562b..42867c14 100644 --- a/src/AuditableObserver.php +++ b/src/AuditableObserver.php @@ -107,7 +107,8 @@ protected function dispatchAudit(Auditable $model) $model->preloadResolverData(); if (!Config::get('audit.queue.enable', false)) { - return Auditor::execute($model); + Auditor::execute($model); + return; } if (!$this->fireDispatchingAuditEvent($model)) { diff --git a/src/Contracts/Auditor.php b/src/Contracts/Auditor.php index 84968a48..87d68838 100644 --- a/src/Contracts/Auditor.php +++ b/src/Contracts/Auditor.php @@ -6,18 +6,12 @@ interface Auditor { /** * Get an audit driver instance. - * - * @param \OwenIt\Auditing\Contracts\Auditable $model - * - * @return AuditDriver */ public function auditDriver(Auditable $model): AuditDriver; /** * Perform an audit. * - * @param \OwenIt\Auditing\Contracts\Auditable $model - * * @return void */ public function execute(Auditable $model);