Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1464-1470 (lines=7) @@
1461
	 * @return bool true on success, false otherwise
1462
	 */
1463
	private function detectUuidAttribute($dn, $isUser = true, $force = false) {
1464
		if($isUser) {
1465
			$uuidAttr     = 'ldapUuidUserAttribute';
1466
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1467
		} else {
1468
			$uuidAttr     = 'ldapUuidGroupAttribute';
1469
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1470
		}
1471
1472
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1473
			return true;
@@ 1507-1513 (lines=7) @@
1504
	 * @return string|bool
1505
	 */
1506
	public function getUUID($dn, $isUser = true) {
1507
		if($isUser) {
1508
			$uuidAttr     = 'ldapUuidUserAttribute';
1509
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1510
		} else {
1511
			$uuidAttr     = 'ldapUuidGroupAttribute';
1512
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1513
		}
1514
1515
		$uuid = false;
1516
		if($this->detectUuidAttribute($dn, $isUser)) {