*
* @param int $userId ID of the user to search for
* @param IDatabase|null $db Optional database connection
- * @return array Associative array of (group name => UserGroupMembership object)
+ * @return UserGroupMembership[] Associative array of (group name => UserGroupMembership object)
*/
public static function getMembershipsForUser( $userId, IDatabase $db = null ) {
if ( !$db ) {
* @return string
*/
public static function getLink( $ugm, IContextSource $context, $format,
- $userName = null ) {
-
+ $userName = null
+ ) {
if ( $format !== 'wiki' && $format !== 'html' ) {
throw new MWException( 'UserGroupMembership::getLink() $format parameter should be ' .
"'wiki' or 'html'" );