From caba131a00835ce424ab472259d894231a1c1ae0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 3 Aug 2024 21:54:19 +0300 Subject: [PATCH] update var names --- src/Model/Database/Auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Database/Auth.php b/src/Model/Database/Auth.php index 1cfeeea9..c2d30bf3 100644 --- a/src/Model/Database/Auth.php +++ b/src/Model/Database/Auth.php @@ -128,15 +128,15 @@ class Auth string $request ): int { - $records = 0; + $affected = 0; foreach ($this->like($request) as $record) { - $records += $this->delete( + $affected += $this->delete( $record->id ); } - return $records; + return $affected; } } \ No newline at end of file