Code Duplication    Length = 6-6 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 796-801 (lines=6) @@
793
	 * @param array $attributes optional, list of attributes to read
794
	 * @return array
795
	 */
796
	public function fetchUsersByLoginName($loginName, $attributes = array('dn')) {
797
		$loginName = $this->escapeFilterPart($loginName);
798
		$filter = str_replace('%uid', $loginName, $this->connection->ldapLoginFilter);
799
		$users = $this->fetchListOfUsers($filter, $attributes);
800
		return $users;
801
	}
802
803
	/**
804
	 * counts the number of users according to a provided loginName and
@@ 810-815 (lines=6) @@
807
	 * @param string $loginName
808
	 * @return int
809
	 */
810
	public function countUsersByLoginName($loginName) {
811
		$loginName = $this->escapeFilterPart($loginName);
812
		$filter = str_replace('%uid', $loginName, $this->connection->ldapLoginFilter);
813
		$users = $this->countUsers($filter);
814
		return $users;
815
	}
816
817
	/**
818
	 * @param string $filter