Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Collaboration/Collaborators/MailPlugin.php 1 location

@@ 45-51 (lines=7) @@
42
	/** @var IConfig */
43
	private $config;
44
45
	public function __construct(IManager $contactsManager, ICloudIdManager $cloudIdManager, IConfig $config) {
46
		$this->contactsManager = $contactsManager;
47
		$this->cloudIdManager = $cloudIdManager;
48
		$this->config = $config;
49
50
		$this->shareeEnumeration = $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') === 'yes';
51
	}
52
53
	/**
54
	 * @param $search

lib/private/Collaboration/Collaborators/RemotePlugin.php 1 location

@@ 45-51 (lines=7) @@
42
	/** @var IConfig */
43
	private $config;
44
45
	public function __construct(IManager $contactsManager, ICloudIdManager $cloudIdManager, IConfig $config) {
46
		$this->contactsManager = $contactsManager;
47
		$this->cloudIdManager = $cloudIdManager;
48
		$this->config = $config;
49
50
		$this->shareeEnumeration = $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') === 'yes';
51
	}
52
53
	public function search($search, $limit, $offset, ISearchResult $searchResult) {
54
		$result = ['wide' => [], 'exact' => []];