Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1560-1566 (lines=7) @@
1557
	 * @return bool true on success, false otherwise
1558
	 */
1559
	private function detectUuidAttribute($dn, $isUser = true, $force = false, array $ldapRecord = null) {
1560
		if($isUser) {
1561
			$uuidAttr     = 'ldapUuidUserAttribute';
1562
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1563
		} else {
1564
			$uuidAttr     = 'ldapUuidGroupAttribute';
1565
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1566
		}
1567
1568
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1569
			return true;
@@ 1611-1617 (lines=7) @@
1608
	 * @return bool|string
1609
	 */
1610
	public function getUUID($dn, $isUser = true, $ldapRecord = null) {
1611
		if($isUser) {
1612
			$uuidAttr     = 'ldapUuidUserAttribute';
1613
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1614
		} else {
1615
			$uuidAttr     = 'ldapUuidGroupAttribute';
1616
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1617
		}
1618
1619
		$uuid = false;
1620
		if($this->detectUuidAttribute($dn, $isUser, false, $ldapRecord)) {