Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 230-232 (lines=3) @@
227
		$groups = $this->groupManager->search($search, $this->limit, $this->offset, 'sharing');
228
		$groupIds = array_map(function (IGroup $group) { return $group->getGID(); }, $groups);
229
230
		if (!$this->shareeEnumeration || sizeof($groups) < $this->limit) {
231
			$this->reachedEndFor[] = 'groups';
232
		}
233
234
		$userGroups =  [];
235
		if (!empty($groups) && ($this->shareWithGroupOnly || $this->shareeEnumerationGroupMembers)) {
@@ 161-163 (lines=3) @@
158
			}
159
		}
160
161
		if (!$this->shareeEnumeration || sizeof($users) < $this->limit) {
162
			$this->reachedEndFor[] = 'users';
163
		}
164
165
		$foundUserById = false;
166
		$lowerSearch = strtolower($search);