Skip to content

Commit 5c0b00c

Browse files
committed
Clean up
1 parent 077415d commit 5c0b00c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

factory/ideas.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,13 +831,14 @@ protected function profile_url()
831831
}
832832

833833
/**
834-
* Get the ideas a user voted on from a group of ideas
834+
* Get a user's votes from a group of ideas
835835
*
836836
* @param int $user_id The user's id
837-
* @param array $ids An array of idea identifiers
838-
* @return array An array of ideas the user voted on with their vote result, or empty otherwise.
837+
* @param array $ids An array of idea ids
838+
* @return array An array of ideas the user voted on and their vote result, or empty otherwise.
839839
* example: [idea_id => vote_result]
840-
* [1 => 1, 2 => 0] Voted up idea 1, voted down idea 2
840+
* 1 => 1, idea 1, voted up by the user
841+
* 2 => 0, idea 2, voted down by the user
841842
*/
842843
protected function get_users_votes($user_id, $ids = [])
843844
{

0 commit comments

Comments
 (0)