X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact.php;h=f8ff91ec554112f4a4a19559f16b4e94ca8369b1;hb=f12cc9648ecf2bdd0e468e29be4164a844b96a46;hp=d6b2780ef3a9ec3ade68147ce9f0ffa4983c1333;hpb=e90ad0c1cd24d88d428965c20829d2912e2e20a0;p=friendica.git diff --git a/src/Model/Contact.php b/src/Model/Contact.php index d6b2780ef3..f8ff91ec55 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2557,7 +2557,7 @@ class Contact * @throws HTTPException\InternalServerErrorException * @throws \ImagickException */ - public static function updateFromProbeByURL($url) + public static function updateFromProbeByURL(string $url): int { $id = self::getIdForURL($url); @@ -2578,7 +2578,7 @@ class Contact * @param string $network Network of that contact * @return string with protocol */ - public static function getProtocol($url, $network) + public static function getProtocol(string $url, string $network): string { if ($network != Protocol::DFRN) { return $network; @@ -2945,6 +2945,7 @@ class Contact * Update the local relationship when a local user loses a follower * * @param array $contact User-specific contact (uid != 0) array + * @return void * @throws HTTPException\InternalServerErrorException * @throws \ImagickException */