mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Changes:
- added some type-hints - added documentation
This commit is contained in:
parent
39675fe683
commit
88870d18be
6 changed files with 36 additions and 14 deletions
|
@ -2312,6 +2312,8 @@ class Contact
|
|||
}
|
||||
|
||||
/**
|
||||
* Updates contact record by provided id and optional network
|
||||
*
|
||||
* @param integer $id contact id
|
||||
* @param string $network Optional network we are probing for
|
||||
* @return boolean
|
||||
|
@ -2335,13 +2337,15 @@ class Contact
|
|||
}
|
||||
|
||||
/**
|
||||
* Updates contact record by provided id and probed data
|
||||
*
|
||||
* @param integer $id contact id
|
||||
* @param array $ret Probed data
|
||||
* @return boolean
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
private static function updateFromProbeArray(int $id, array $ret)
|
||||
private static function updateFromProbeArray(int $id, array $ret): bool
|
||||
{
|
||||
/*
|
||||
Warning: Never ever fetch the public key via Probe::uri and write it into the contacts.
|
||||
|
@ -2552,6 +2556,8 @@ class Contact
|
|||
}
|
||||
|
||||
/**
|
||||
* Updates contact record by provided URL
|
||||
*
|
||||
* @param integer $url contact url
|
||||
* @return integer Contact id
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue