Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1552-1558 (lines=7) @@
1549
	 * @return bool true on success, false otherwise
1550
	 */
1551
	private function detectUuidAttribute($dn, $isUser = true, $force = false, array $ldapRecord = null) {
1552
		if($isUser) {
1553
			$uuidAttr     = 'ldapUuidUserAttribute';
1554
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1555
		} else {
1556
			$uuidAttr     = 'ldapUuidGroupAttribute';
1557
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1558
		}
1559
1560
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1561
			return true;
@@ 1603-1609 (lines=7) @@
1600
	 * @return bool|string
1601
	 */
1602
	public function getUUID($dn, $isUser = true, $ldapRecord = null) {
1603
		if($isUser) {
1604
			$uuidAttr     = 'ldapUuidUserAttribute';
1605
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1606
		} else {
1607
			$uuidAttr     = 'ldapUuidGroupAttribute';
1608
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1609
		}
1610
1611
		$uuid = false;
1612
		if($this->detectUuidAttribute($dn, $isUser, false, $ldapRecord)) {