Skip to content

Commit

Permalink
Improve code style
Browse files Browse the repository at this point in the history
Signed-off-by: Tobia De Koninck <[email protected]>
  • Loading branch information
LEDfan committed Aug 5, 2017
1 parent 6b79567 commit dfa7f94
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/private/Contacts/ContactsMenu/ContactsStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ public function getContacts(IUser $user, $filter) {
* enabled it will filter all users which doens't have a common group
* with the current user.
* @param IUser $self
* @param $entries Entry[]
* @return array the filtered contacts
* @param Entry[] $entries
* @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';

$skipLocal = false; // 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
// whether to filter out local users
$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);

Expand Down

0 comments on commit dfa7f94

Please sign in to comment.