| @@ -24,14 +24,12 @@ | ||
| 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 | |
| @@ -99,7 +99,7 @@ discard block | ||
| 99 | 99 |  		if ($excludedGroups) { | 
| 100 | 100 |  			$excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); | 
| 101 | 101 | $decodedExcludeGroups = json_decode($excludedGroups, true); | 
| 102 | - $excludeGroupsList = !is_null($decodedExcludeGroups) ? $decodedExcludeGroups : []; | |
| 102 | + $excludeGroupsList = !is_null($decodedExcludeGroups) ? $decodedExcludeGroups : []; | |
| 103 | 103 | |
| 104 | 104 |  			if (count(array_intersect($excludeGroupsList, $selfGroups)) !== 0) { | 
| 105 | 105 | // a group of the current user is excluded -> filter all local users | 
| @@ -136,7 +136,7 @@ discard block | ||
| 136 | 136 | * @return IEntry|null | 
| 137 | 137 | */ | 
| 138 | 138 |  	public function findOne(IUser $user, $shareType, $shareWith) { | 
| 139 | -		switch($shareType) { | |
| 139 | +		switch ($shareType) { | |
| 140 | 140 | case 0: | 
| 141 | 141 | case 6: | 
| 142 | 142 | $filter = ['UID']; |