Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/access.php 2 locations

@@ 1318-1324 (lines=7) @@
1315
	 * @return bool true on success, false otherwise
1316
	 */
1317
	private function detectUuidAttribute($dn, $isUser = true, $force = false) {
1318
		if($isUser) {
1319
			$uuidAttr     = 'ldapUuidUserAttribute';
1320
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1321
		} else {
1322
			$uuidAttr     = 'ldapUuidGroupAttribute';
1323
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1324
		}
1325
1326
		if(($this->connection->$uuidAttr !== 'auto') && !$force) {
1327
			return true;
@@ 1361-1367 (lines=7) @@
1358
	 * @return string|bool
1359
	 */
1360
	public function getUUID($dn, $isUser = true) {
1361
		if($isUser) {
1362
			$uuidAttr     = 'ldapUuidUserAttribute';
1363
			$uuidOverride = $this->connection->ldapExpertUUIDUserAttr;
1364
		} else {
1365
			$uuidAttr     = 'ldapUuidGroupAttribute';
1366
			$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr;
1367
		}
1368
1369
		$uuid = false;
1370
		if($this->detectUuidAttribute($dn, $isUser)) {