Code Duplication    Length = 6-6 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

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