From 29f53112c0ab3f5c86a16a50d98cfab1cd837dcc Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 3 Aug 2024 21:20:24 +0300 Subject: [PATCH] rename getter --- src/Entity/Browser/Container/Page/Auth.php | 4 ++-- src/Model/Database/Auth.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Entity/Browser/Container/Page/Auth.php b/src/Entity/Browser/Container/Page/Auth.php index ea491957..b8cc9c85 100644 --- a/src/Entity/Browser/Container/Page/Auth.php +++ b/src/Entity/Browser/Container/Page/Auth.php @@ -97,7 +97,7 @@ class Auth ]->useName(); // Search database for auth records - foreach ($this->page->container->browser->database->auth->match( + foreach ($this->page->container->browser->database->auth->like( sprintf( '%s%%', $this->page->navbar->request->getValue() @@ -137,7 +137,7 @@ class Auth // Detect active identity $option->gtk->set_active( boolval( - $this->page->container->browser->database->auth->match( + $this->page->container->browser->database->auth->like( $this->page->navbar->request->getValue(), 1 // one ) ) diff --git a/src/Model/Database/Auth.php b/src/Model/Database/Auth.php index 47bb4c7a..1cfeeea9 100644 --- a/src/Model/Database/Auth.php +++ b/src/Model/Database/Auth.php @@ -98,7 +98,7 @@ class Auth return null; } - public function match( + public function like( string $request = '', int $limit = 1000, int $start = 0 @@ -130,7 +130,7 @@ class Auth { $records = 0; - foreach ($this->match($request) as $record) + foreach ($this->like($request) as $record) { $records += $this->delete( $record->id