[*] fix index

This commit is contained in:
rsgrinko committed 2022-06-20 22:42:41 +03:00
1 parent 2d85ba8b46
commit 7ef42a9cf4
4 files changed
+41 -20

No files matched your search

+13
View File
@@ -31,6 +31,11 @@
*/
public $body = '';
/**
* Тип
*/
public $type = '';
/**
* Массив заголовков файлов
*/
@@ -70,6 +75,14 @@
$this->body = $body;
}
/**
* Тело письма
*/
public function setType($type = 'html')
{
$this->type = $type;
}
/**
* Добавление файла к письму
*/
+4 -3
View File
@@ -127,7 +127,7 @@
}
/**
* Получение имени текущего пользователя
* Получение времени ппоследней активности
*
* @return string|null
*/
@@ -155,7 +155,7 @@
* @return array
* @throws CoreException
*/
public static function getUsers(string $limit = '10', $sort = 'ASC')
public static function getUsers(string $limit = '10', string $sort = 'ASC'): array
{
$cacheId = md5('User_getUsers_' . $limit . '_' . $sort);
if (Cache::check($cacheId)) {
@@ -186,6 +186,7 @@
* Генерация GUID
*
* @return string
* @throws \Exception
*/
private static function generateGUID(): string
{
@@ -272,7 +273,7 @@
*
* @throws CoreException
*/
public static function registration(string $login, string $password, string $email, string $name = '', string $image = ''): int
public static function create(string $login, string $password, string $email, string $name = '', string $image = ''): int
{
Log::logToFile(__METHOD__, 'User.log', func_get_args());