Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobia De Koninck <tobia@ledfan.be>2017-08-05 16:21:14 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-09-15 15:31:40 +0300
commit7dfa527da2899d02353ff1ae1aa8cc00371bb628 (patch)
treebaa2f84a3bc138573b835702306de5f2476fe1d3 /lib/private/Contacts/ContactsMenu/ContactsStore.php
parentf0370c024485a16943ff323b31ca8d7919bc1bea (diff)
Improve code style
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'lib/private/Contacts/ContactsMenu/ContactsStore.php')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index a788ad32f6d..299e88ad01b 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -85,14 +85,16 @@ class ContactsStore {
* 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);