Code Duplication    Length = 3-3 lines in 2 locations

apps/files_sharing/lib/Controller/ShareesController.php 2 locations

@@ 156-158 (lines=3) @@
153
			}
154
		}
155
156
		if (!$this->shareeEnumeration || sizeof($users) < $this->limit) {
157
			$this->reachedEndFor[] = 'users';
158
		}
159
160
		$foundUserById = false;
161
		foreach ($users as $uid => $userDisplayName) {
@@ 223-225 (lines=3) @@
220
		$groups = $this->groupManager->search($search, $this->limit, $this->offset);
221
		$groups = array_map(function (IGroup $group) { return $group->getGID(); }, $groups);
222
223
		if (!$this->shareeEnumeration || sizeof($groups) < $this->limit) {
224
			$this->reachedEndFor[] = 'groups';
225
		}
226
227
		$userGroups =  [];
228
		if (!empty($groups) && $this->shareWithGroupOnly) {