Fix PHPDoc comments project-wide

This commit is contained in:
Hypolite Petovan 2019-01-06 16:06:53 -05:00
parent 6077aa5847
commit 3282ce5389
113 changed files with 1703 additions and 795 deletions

View file

@ -34,6 +34,7 @@ class User
*
* @param integer $uid
* @return boolean
* @throws Exception
*/
public static function exists($uid)
{
@ -43,6 +44,7 @@ class User
/**
* @param integer $uid
* @return array|boolean User record if it exists, false otherwise
* @throws Exception
*/
public static function getById($uid)
{
@ -55,6 +57,7 @@ class User
* @param string $url
*
* @return integer user id
* @throws Exception
*/
public static function getIdForURL($url)
{
@ -71,6 +74,7 @@ class User
*
* @param int $uid
* @return boolean|array
* @throws Exception
*/
public static function getOwnerDataById($uid) {
$r = DBA::fetchFirst("SELECT
@ -115,6 +119,7 @@ class User
*
* @param int $nick
* @return boolean|array
* @throws Exception
*/
public static function getOwnerDataByNick($nick)
{
@ -134,6 +139,7 @@ class User
* @param string $network network name
*
* @return int group id
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function getDefaultGroup($uid, $network = '')
{
@ -364,6 +370,7 @@ class User
* @param int $uid
* @param string $pasword_hashed
* @return bool
* @throws Exception
*/
private static function updatePasswordHashed($uid, $pasword_hashed)
{
@ -385,6 +392,7 @@ class User
*
* @param string $nickname The nickname that should be checked
* @return boolean True is the nickname is blocked on the node
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function isNicknameBlocked($nickname)
{
@ -422,6 +430,7 @@ class User
* @return array
* @throws \ErrorException
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException
* @throws Exception
*/
public static function create(array $data)
@ -807,7 +816,8 @@ class User
/**
* @param object $uid user to remove
* @return void
* @return bool
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function remove($uid)
{
@ -848,18 +858,19 @@ class User
* @return array All identities for this user
*
* Example for a return:
* [
* [
* 'uid' => 1,
* 'username' => 'maxmuster',
* 'nickname' => 'Max Mustermann'
* ],
* [
* 'uid' => 2,
* 'username' => 'johndoe',
* 'nickname' => 'John Doe'
* ]
* ]
* [
* [
* 'uid' => 1,
* 'username' => 'maxmuster',
* 'nickname' => 'Max Mustermann'
* ],
* [
* 'uid' => 2,
* 'username' => 'johndoe',
* 'nickname' => 'John Doe'
* ]
* ]
* @throws Exception
*/
public static function identities($uid)
{