Fix PHPDoc comments project-wide
This commit is contained in:
parent
6077aa5847
commit
3282ce5389
113 changed files with 1703 additions and 795 deletions
|
@ -36,6 +36,7 @@ class Profile
|
|||
* @param integer User ID
|
||||
*
|
||||
* @return array Profile data
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getByUID($uid)
|
||||
{
|
||||
|
@ -102,6 +103,8 @@ class Profile
|
|||
* @param int $profile int
|
||||
* @param array $profiledata array
|
||||
* @param boolean $show_connect Show connect link
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function load(App $a, $nickname, $profile = 0, array $profiledata = [], $show_connect = true)
|
||||
{
|
||||
|
@ -206,10 +209,11 @@ class Profile
|
|||
* Includes all available profile data
|
||||
*
|
||||
* @brief Get all profile data of a local user
|
||||
* @param string $nickname nick
|
||||
* @param int $uid uid
|
||||
* @param int $profile_id ID of the profile
|
||||
* @param string $nickname nick
|
||||
* @param int $uid uid
|
||||
* @param int $profile_id ID of the profile
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getByNickname($nickname, $uid = 0, $profile_id = 0)
|
||||
{
|
||||
|
@ -265,13 +269,15 @@ class Profile
|
|||
* because of all the conditional logic.
|
||||
*
|
||||
* @brief Formats a profile for display in the sidebar.
|
||||
* @param array $profile
|
||||
* @param int $block
|
||||
* @param array $profile
|
||||
* @param int $block
|
||||
* @param boolean $show_connect Show connect link
|
||||
*
|
||||
* @return string HTML sidebar module
|
||||
*
|
||||
* @note Returns empty string if passed $profile is wrong type or not populated
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
* @note Returns empty string if passed $profile is wrong type or not populated
|
||||
*
|
||||
* @hooks 'profile_sidebar_enter'
|
||||
* array $profile - profile data
|
||||
|
@ -1022,6 +1028,8 @@ class Profile
|
|||
* Ported from Hubzilla: https://framagit.org/hubzilla/core/blob/master/include/channel.php
|
||||
*
|
||||
* @param App $a Application instance.
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function zrlInit(App $a)
|
||||
{
|
||||
|
@ -1091,6 +1099,8 @@ class Profile
|
|||
* Ported from Hubzilla: https://framagit.org/hubzilla/core/blob/master/include/zid.php
|
||||
*
|
||||
* @param string $token
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function openWebAuthInit($token)
|
||||
{
|
||||
|
@ -1184,6 +1194,7 @@ class Profile
|
|||
* @brief Get the user ID of the page owner
|
||||
* @return int user ID
|
||||
*
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @note Returns local_user instead of user ID if "always_my_theme" is set to true
|
||||
*/
|
||||
public static function getThemeUid(App $a)
|
||||
|
@ -1208,11 +1219,12 @@ class Profile
|
|||
}
|
||||
|
||||
/**
|
||||
* Stip query parameter from a string.
|
||||
*
|
||||
* @param string $s The input string.
|
||||
* @return string The query parameter.
|
||||
*/
|
||||
* Strip query parameter from a string.
|
||||
*
|
||||
* @param string $s The input string.
|
||||
* @param $param
|
||||
* @return string The query parameter.
|
||||
*/
|
||||
public static function stripQueryParam($s, $param)
|
||||
{
|
||||
return preg_replace('/[\?&]' . $param . '=(.*?)(&|$)/ism', '$2', $s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue