Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1616-1622 (lines=7) @@
1613
	 * @return bool true on success, false otherwise
1614
	 */
1615
	private function detectUuidAttribute($dn, $isUser = true, $force = false, array $ldapRecord = null) {
1616
		if($isUser) {
1617
			$uuidAttr     = 'ldapUuidUserAttribute';
1618
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1619
		} else {
1620
			$uuidAttr     = 'ldapUuidGroupAttribute';
1621
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1622
		}
1623
1624
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1625
			return true;
@@ 1671-1677 (lines=7) @@
1668
	 * @return bool|string
1669
	 */
1670
	public function getUUID($dn, $isUser = true, $ldapRecord = null) {
1671
		if($isUser) {
1672
			$uuidAttr     = 'ldapUuidUserAttribute';
1673
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1674
		} else {
1675
			$uuidAttr     = 'ldapUuidGroupAttribute';
1676
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1677
		}
1678
1679
		$uuid = false;
1680
		if($this->detectUuidAttribute($dn, $isUser, false, $ldapRecord)) {