Typos fix

main
Yasen Pramatarov 2024-12-29 17:35:15 +02:00
parent a55a02c209
commit db97101113
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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);
}