Code Duplication    Length = 11-11 lines in 2 locations

lib/private/Group/Group.php 2 locations

@@ 206-216 (lines=11) @@
203
	 * @param int $offset
204
	 * @return \OC\User\User[]
205
	 */
206
	public function searchUsers($search, $limit = null, $offset = null) {
207
		$users = array();
208
		foreach ($this->backends as $backend) {
209
			$userIds = $backend->usersInGroup($this->gid, $search, $limit, $offset);
210
			$users += $this->getVerifiedUsers($userIds);
211
			if (!is_null($limit) and $limit <= 0) {
212
				return array_values($users);
213
			}
214
		}
215
		return array_values($users);
216
	}
217
218
	/**
219
	 * returns the number of users matching the search string
@@ 267-277 (lines=11) @@
264
	 * @param int $offset
265
	 * @return \OC\User\User[]
266
	 */
267
	public function searchDisplayName($search, $limit = null, $offset = null) {
268
		$users = array();
269
		foreach ($this->backends as $backend) {
270
			$userIds = $backend->usersInGroup($this->gid, $search, $limit, $offset);
271
			$users = $this->getVerifiedUsers($userIds);
272
			if (!is_null($limit) and $limit <= 0) {
273
				return array_values($users);
274
			}
275
		}
276
		return array_values($users);
277
	}
278
279
	/**
280
	 * delete the group