mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:10:11 +00:00
Changes:
- added some type-hints - changed some double-quotes to single
This commit is contained in:
parent
9069abbb30
commit
f12cc9648e
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue