Code Duplication    Length = 3-3 lines in 2 locations

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

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