Fix docblocks types

This commit is contained in:
Hypolite Petovan 2017-12-17 15:27:50 -05:00
parent 10b72b0e9e
commit 916236ce2f
12 changed files with 33 additions and 29 deletions

View file

@ -197,7 +197,7 @@ class Contact extends BaseObject
* up or some other transient event and that there's a possibility we could recover from it.
*
* @param array $contact contact to mark for archival
* @return type
* @return null
*/
public static function markForArchival(array $contact)
{

View file

@ -636,7 +636,7 @@ class GContact
/**
* @brief Replace alternate OStatus user format with the primary one
*
* @param arr $contact contact array (called by reference)
* @param array $contact contact array (called by reference)
* @return void
*/
public static function fixAlternateContactAddress(&$contact)
@ -656,7 +656,7 @@ class GContact
/**
* @brief Fetch the gcontact id, add an entry if not existed
*
* @param arr $contact contact array
* @param array $contact contact array
*
* @return bool|int Returns false if not found, integer if contact was found
*/
@ -747,7 +747,7 @@ class GContact
/**
* @brief Updates the gcontact table from a given array
*
* @param arr $contact contact array
* @param array $contact contact array
*
* @return bool|int Returns false if not found, integer if contact was found
*/
@ -908,7 +908,7 @@ class GContact
/**
* @brief Updates the gcontact entry from probe
*
* @param str $url profile link
* @param string $url profile link
* @return void
*/
public static function updateFromProbe($url)
@ -974,7 +974,7 @@ class GContact
*
* If the "Statistics" plugin is enabled (See http://gstools.org/ for details) we query user data with this.
*
* @param str $server Server address
* @param string $server Server address
* @return void
*/
public static function fetchGsUsers($server)

View file

@ -131,7 +131,7 @@ class Group extends BaseObject
/**
* @brief Mark a group as deleted
*
* @param type $gid
* @param int $gid
* @return boolean
*/
public static function remove($gid) {
@ -176,9 +176,9 @@ class Group extends BaseObject
*
* @deprecated Use Group::remove instead
*
* @param type $uid
* @param type $name
* @return type
* @param int $uid
* @param string $name
* @return bool
*/
public static function removeByName($uid, $name) {
$return = false;