From db97101113ec19c64780d74e3bcb8c9a4d281a82 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Sun, 29 Dec 2024 17:35:15 +0200 Subject: [PATCH] Typos fix --- app/classes/ratelimitrer.php | 4 ++-- app/classes/user.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/classes/ratelimitrer.php b/app/classes/ratelimitrer.php index 7b35d2a..32f411e 100644 --- a/app/classes/ratelimitrer.php +++ b/app/classes/ratelimitrer.php @@ -11,11 +11,11 @@ class RateLimiter { public function __construct($database) { $this->db = $database->getConnection(); $this->log = new Log($database); - $this->createTablesIfNotExists(); + $this->createTablesIfNotExist(); } // Database preparation - private function createTablesIfNotExists() { + private function createTablesIfNotExist() { // Login attempts table $sql = "CREATE TABLE IF NOT EXISTS {$this->ratelimitTable} ( id INTEGER PRIMARY KEY AUTOINCREMENT, diff --git a/app/classes/user.php b/app/classes/user.php index e058798..515d78e 100644 --- a/app/classes/user.php +++ b/app/classes/user.php @@ -10,7 +10,7 @@ class User { * @var PDO|null $db The database connection instance. */ private $db; - private $ratelimiter; + private $rateLimiter; /** * User constructor. @@ -20,7 +20,7 @@ class User { */ public function __construct($database) { $this->db = $database->getConnection(); - $this->ratelimiter = new RateLimiter($database); + $this->rateLimiter = new RateLimiter($database); }