Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 176-178 (lines=3) @@
173
			}
174
		}
175
176
		if (!$this->shareeEnumeration || \sizeof($users) < $this->limit) {
177
			$this->reachedEndFor[] = 'users';
178
		}
179
180
		$foundUserById = false;
181
		$lowerSearch = \strtolower($search);
@@ 275-277 (lines=3) @@
272
			return $group->getGID();
273
		}, $groups);
274
275
		if (!$this->shareeEnumeration || \sizeof($groups) < $this->limit) {
276
			$this->reachedEndFor[] = 'groups';
277
		}
278
279
		$userGroups =  [];
280
		if (!empty($groups) && ($this->shareWithMembershipGroupOnly || $this->shareeEnumerationGroupMembers)) {