Skip to content

Commit

Permalink
Conform to coding guidelines
Browse files Browse the repository at this point in the history
refs #9950
  • Loading branch information
majentsch committed Sep 22, 2015
1 parent aebc48c commit 84554d2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,11 @@ public function getMemberships(User $user)
$userQuery->where(new Expression($this->userFilter));
}

# Posix group only uses simple user name
if ($this->groupClass == 'posixGroup') {
if ($this->groupClass === 'posixGroup') {
# Posix group only uses simple user name
$queryUsername = $user->getUsername();
}
# LDAP groups use the complete DN
else {
} else {
# LDAP groups use the complete DN
if (($queryUsername = $userQuery->fetchDn()) === null) {
return array();
}
Expand Down

0 comments on commit 84554d2

Please sign in to comment.