Skip to content

Commit

Permalink
Better function descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Oct 30, 2021
1 parent 158920b commit 5018aa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/private/Profile/ProfileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ private function getActions(IUser $targetUser, ?IUser $visitingUser): array {
}

/**
* Return whether the profile parameter is visible to the visiting user
* Return whether the profile parameter of the target user
* is visible to the visiting user
*/
private function isParameterVisible(IUser $targetUser, ?IUser $visitingUser, string $paramId): bool {
try {
Expand Down Expand Up @@ -247,7 +248,8 @@ private function isParameterVisible(IUser $targetUser, ?IUser $visitingUser, str
}

/**
* Return the profile parameters
* Return the profile parameters of the target user that are visible to the visiting user
* in an associative array
*/
public function getProfileParams(IUser $targetUser, ?IUser $visitingUser): array {
$account = $this->accountManager->getAccount($targetUser);
Expand Down

0 comments on commit 5018aa1

Please sign in to comment.