Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49

This commit is contained in:
2023-12-08 13:39:20 +02:00
committed by Ivor Barhansky
parent 8be1c6cd7e
commit 26f28a9be8
12 changed files with 150 additions and 536 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ readonly class Moderator
Db::sql('update moderators set can_block_users = ?, is_admin = ? where uid = ?', [(int)$allowBlock, (int)$adminRights, $uid]);
}
public static function delete(int $uid): void
public static function remove(int $uid): void
{
Db::sql('delete from moderators where uid = ?', [$uid]);
}