Code Duplication    Length = 3-3 lines in 2 locations

apps/user_ldap/group_ldap.php 1 location

@@ 781-783 (lines=3) @@
778
	 * @return bool
779
	 */
780
	public function groupExists($gid) {
781
		if($this->access->connection->isCached('groupExists'.$gid)) {
782
			return $this->access->connection->getFromCache('groupExists'.$gid);
783
		}
784
785
		//getting dn, if false the group does not exist. If dn, it may be mapped
786
		//only, requires more checking.

apps/user_ldap/user_ldap.php 1 location

@@ 249-251 (lines=3) @@
246
	 * @throws \Exception when connection could not be established
247
	 */
248
	public function userExists($uid) {
249
		if($this->access->connection->isCached('userExists'.$uid)) {
250
			return $this->access->connection->getFromCache('userExists'.$uid);
251
		}
252
		//getting dn, if false the user does not exist. If dn, he may be mapped only, requires more checking.
253
		$user = $this->access->userManager->get($uid);
254