Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1365-1371 (lines=7) @@
1362
	 * @return bool true on success, false otherwise
1363
	 */
1364
	private function detectUuidAttribute($dn, $isUser = true, $force = false) {
1365
		if($isUser) {
1366
			$uuidAttr     = 'ldapUuidUserAttribute';
1367
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1368
		} else {
1369
			$uuidAttr     = 'ldapUuidGroupAttribute';
1370
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1371
		}
1372
1373
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1374
			return true;
@@ 1408-1414 (lines=7) @@
1405
	 * @return string|bool
1406
	 */
1407
	public function getUUID($dn, $isUser = true) {
1408
		if($isUser) {
1409
			$uuidAttr     = 'ldapUuidUserAttribute';
1410
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1411
		} else {
1412
			$uuidAttr     = 'ldapUuidGroupAttribute';
1413
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1414
		}
1415
1416
		$uuid = false;
1417
		if($this->detectUuidAttribute($dn, $isUser)) {