Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Access.php 2 locations

@@ 1333-1339 (lines=7) @@
1330
	 * @return bool true on success, false otherwise
1331
	 */
1332
	private function detectUuidAttribute($dn, $isUser = true, $force = false) {
1333
		if($isUser) {
1334
			$uuidAttr     = 'ldapUuidUserAttribute';
1335
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1336
		} else {
1337
			$uuidAttr     = 'ldapUuidGroupAttribute';
1338
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1339
		}
1340
1341
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1342
			return true;
@@ 1376-1382 (lines=7) @@
1373
	 * @return string|bool
1374
	 */
1375
	public function getUUID($dn, $isUser = true) {
1376
		if($isUser) {
1377
			$uuidAttr     = 'ldapUuidUserAttribute';
1378
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1379
		} else {
1380
			$uuidAttr     = 'ldapUuidGroupAttribute';
1381
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1382
		}
1383
1384
		$uuid = false;
1385
		if($this->detectUuidAttribute($dn, $isUser)) {