Improve code style

Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
This commit is contained in:
Tobia De Koninck 2017-08-05 15:21:14 +02:00 committed by Lukas Reschke
parent f0370c0244
commit 7dfa527da2
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 7 additions and 5 deletions

View File

@ -85,14 +85,16 @@ class ContactsStore {
* enabled it will filter all users which doens't have a common group * enabled it will filter all users which doens't have a common group
* with the current user. * with the current user.
* @param IUser $self * @param IUser $self
* @param $entries Entry[] * @param Entry[] $entries
* @return array the filtered contacts * @return Entry[] the filtered contacts
*/ */
private function filterContacts(IUser $self, Array $entries) { private function filterContacts(IUser $self, array $entries) {
$excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes'; $excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes';
$skipLocal = false; // whether to filter out local users // whether to filter out local users
$ownGroupsOnly = $this->config->getAppValue('core', 'shareapi_only_share_with_group_members', 'no'); // whether to filter out all users which doesn't have the same group as the current user $skipLocal = false;
// whether to filter out all users which doesn't have the same group as the current user
$ownGroupsOnly = $this->config->getAppValue('core', 'shareapi_only_share_with_group_members', 'no');
$selfGroups = $this->groupManager->getUserGroupIds($self); $selfGroups = $this->groupManager->getUserGroupIds($self);