Completed
Pull Request — master (#5585)
by Tobia
22:09 queued 08:03
created
lib/private/Contacts/ContactsMenu/ContactsStore.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -24,14 +24,12 @@
 block discarded – undo
24 24
 
25 25
 namespace OC\Contacts\ContactsMenu;
26 26
 
27
-use OC\Share\Share;
28 27
 use OCP\Contacts\ContactsMenu\IEntry;
29 28
 use OCP\Contacts\IManager;
30 29
 use OCP\IConfig;
31 30
 use OCP\IGroupManager;
32 31
 use OCP\IUser;
33 32
 use OCP\IUserManager;
34
-use OCP\IUserSession;
35 33
 
36 34
 class ContactsStore {
37 35
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 		if ($excludedGroups) {
100 100
 			$excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
101
-			$excludeGroupsList = !is_null(json_decode($excludedGroups)) ? json_decode($excludedGroups, true) :  [];
101
+			$excludeGroupsList = !is_null(json_decode($excludedGroups)) ? json_decode($excludedGroups, true) : [];
102 102
 
103 103
 			if (count(array_intersect($excludeGroupsList, $selfGroups)) !== 0) {
104 104
 				// a group of the current user is excluded -> filter all local users
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 * @return IEntry|null
136 136
 	 */
137 137
 	public function findOne(IUser $user, $shareType, $shareWith) {
138
-		switch($shareType) {
138
+		switch ($shareType) {
139 139
 			case 0:
140 140
 			case 6:
141 141
 				$filter = ['UID'];
Please login to merge, or discard this patch.