Code Duplication    Length = 3-3 lines in 2 locations

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

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