Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 171-173 (lines=3) @@
168
			}
169
		}
170
171
		if (!$this->shareeEnumeration || sizeof($users) < $this->limit) {
172
			$this->reachedEndFor[] = 'users';
173
		}
174
175
		$foundUserById = false;
176
		$lowerSearch = strtolower($search);
@@ 239-241 (lines=3) @@
236
		$groups = $this->groupManager->search($search, $this->limit, $this->offset);
237
		$groupIds = array_map(function (IGroup $group) { return $group->getGID(); }, $groups);
238
239
		if (!$this->shareeEnumeration || sizeof($groups) < $this->limit) {
240
			$this->reachedEndFor[] = 'groups';
241
		}
242
243
		$userGroups =  [];
244
		if (!empty($groups) && $this->shareWithGroupOnly) {