Code Duplication    Length = 3-3 lines in 2 locations

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

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