Code Duplication    Length = 6-6 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 776-781 (lines=6) @@
773
	 * @param array $attributes optional, list of attributes to read
774
	 * @return array
775
	 */
776
	public function fetchUsersByLoginName($loginName, $attributes = array('dn')) {
777
		$loginName = $this->escapeFilterPart($loginName);
778
		$filter = str_replace('%uid', $loginName, $this->connection->ldapLoginFilter);
779
		$users = $this->fetchListOfUsers($filter, $attributes);
780
		return $users;
781
	}
782
783
	/**
784
	 * counts the number of users according to a provided loginName and
@@ 790-795 (lines=6) @@
787
	 * @param string $loginName
788
	 * @return array
789
	 */
790
	public function countUsersByLoginName($loginName) {
791
		$loginName = $this->escapeFilterPart($loginName);
792
		$filter = str_replace('%uid', $loginName, $this->connection->ldapLoginFilter);
793
		$users = $this->countUsers($filter);
794
		return $users;
795
	}
796
797
	/**
798
	 * @param string $filter