Code Duplication    Length = 7-7 lines in 2 locations

apps/user_ldap/lib/Group_LDAP.php 2 locations

@@ 311-317 (lines=7) @@
308
	 * @param string $attribute
309
	 * @return string|bool
310
	 */
311
	private function getEntryGidNumber($dn, $attribute) {
312
		$value = $this->access->readAttribute($dn, $attribute);
313
		if(is_array($value) && !empty($value)) {
314
			return $value[0];
315
		}
316
		return false;
317
	}
318
319
	/**
320
	 * returns the group's primary ID
@@ 475-481 (lines=7) @@
472
	 * @param string $attribute
473
	 * @return string|bool
474
	 */
475
	private function getEntryGroupID($dn, $attribute) {
476
		$value = $this->access->readAttribute($dn, $attribute);
477
		if(is_array($value) && !empty($value)) {
478
			return $value[0];
479
		}
480
		return false;
481
	}
482
483
	/**
484
	 * returns the group's primary ID