Typos fix
parent
a55a02c209
commit
db97101113
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue