Code Duplication    Length = 6-6 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

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