From 86ef7c66d3533b929964e035b37d0332b2bd8c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Sat, 23 Jul 2022 22:58:15 +0200 Subject: [PATCH] Changes: - added some missing type-hints, thanks to @MrPetovan --- src/Model/Profile.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 46828009a3..094df729e7 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -878,7 +878,7 @@ class Profile * * @return string URL with 'zrl' parameter or original URL in case of no Friendica profile URL */ - public static function zrl(string $url, bool $force = false) + public static function zrl(string $url, bool $force = false): string { if (!strlen($url)) { return $url; @@ -909,6 +909,7 @@ class Profile * want to see anybody else's theme settings except their own while on this site. * * @param App $a + * * @return int user ID * * @note Returns local_user instead of user ID if "always_my_theme" is set to true @@ -929,7 +930,7 @@ class Profile * * @throws \Exception */ - public static function searchProfiles(int $start = 0, int $count = 100, string $search = null) + public static function searchProfiles(int $start = 0, int $count = 100, string $search = null): array { if (!empty($search)) { $publish = (DI::config()->get('system', 'publish_all') ? '' : "AND `publish` ");