diff options
author | Andrew Dolgov <[email protected]> | 2021-02-26 19:27:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-26 19:27:40 +0300 |
commit | ebf16a36a15e4af2c8dcde8b47d921513ba74b3e (patch) | |
tree | 141bf6a5d97669cfb28c6b6ed9424c15425d6697 | |
parent | ef8c3abd7e9af334a8dae45216d7f5c14c6cee58 (diff) |
remove a bunch of return type hints that didn't quite fit
-rw-r--r-- | classes/userhelper.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/userhelper.php b/classes/userhelper.php index f366682ef..44406b959 100644 --- a/classes/userhelper.php +++ b/classes/userhelper.php @@ -143,7 +143,7 @@ class UserHelper { } - static function get_user_ip() : string { + static function get_user_ip() { foreach (["HTTP_X_REAL_IP", "REMOTE_ADDR"] as $hdr) { if (isset($_SERVER[$hdr])) return $_SERVER[$hdr]; @@ -152,7 +152,7 @@ class UserHelper { return null; } - static function get_login_by_id(int $id) : string { + static function get_login_by_id(int $id) { $pdo = Db::pdo(); $sth = $pdo->prepare("SELECT login FROM ttrss_users WHERE id = ?"); @@ -165,7 +165,7 @@ class UserHelper { return null; } - static function find_user_by_login(string $login) : int { + static function find_user_by_login(string $login) { $pdo = Db::pdo(); $sth = $pdo->prepare("SELECT id FROM ttrss_users WHERE @@ -264,7 +264,7 @@ class UserHelper { return false; } - static function get_otp_secret(int $owner_uid, bool $show_if_enabled = false) : string { + static function get_otp_secret(int $owner_uid, bool $show_if_enabled = false) { $sth = Db::pdo()->prepare("SELECT salt, otp_enabled FROM ttrss_users WHERE id = ?"); $sth->execute([$owner_uid]); |