Code Duplication    Length = 6-6 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 644-649 (lines=6) @@
641
	 * @param array $attributes optional, list of attributes to read
642
	 * @return array
643
	 */
644
	public function fetchUsersByLoginName($loginName, $attributes = array('dn')) {
645
		$loginName = $this->escapeFilterPart($loginName);
646
		$filter = str_replace('%uid', $loginName, $this->connection->ldapLoginFilter);
647
		$users = $this->fetchListOfUsers($filter, $attributes);
648
		return $users;
649
	}
650
651
	/**
652
	 * counts the number of users according to a provided loginName and
@@ 658-663 (lines=6) @@
655
	 * @param string $loginName
656
	 * @return array
657
	 */
658
	public function countUsersByLoginName($loginName) {
659
		$loginName = $this->escapeFilterPart($loginName);
660
		$filter = str_replace('%uid', $loginName, $this->connection->ldapLoginFilter);
661
		$users = $this->countUsers($filter);
662
		return $users;
663
	}
664
665
	/**
666
	 * @param string $filter