Code Duplication    Length = 3-3 lines in 3 locations

apps/user_ldap/lib/Access.php 3 locations

@@ 1541-1543 (lines=3) @@
1538
	private function convertObjectGUID2Str($oguid) {
1539
		$hex_guid = bin2hex($oguid);
1540
		$hex_guid_to_guid_str = '';
1541
		for($k = 1; $k <= 4; ++$k) {
1542
			$hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2);
1543
		}
1544
		$hex_guid_to_guid_str .= '-';
1545
		for($k = 1; $k <= 2; ++$k) {
1546
			$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
@@ 1545-1547 (lines=3) @@
1542
			$hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2);
1543
		}
1544
		$hex_guid_to_guid_str .= '-';
1545
		for($k = 1; $k <= 2; ++$k) {
1546
			$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
1547
		}
1548
		$hex_guid_to_guid_str .= '-';
1549
		for($k = 1; $k <= 2; ++$k) {
1550
			$hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2);
@@ 1549-1551 (lines=3) @@
1546
			$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
1547
		}
1548
		$hex_guid_to_guid_str .= '-';
1549
		for($k = 1; $k <= 2; ++$k) {
1550
			$hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2);
1551
		}
1552
		$hex_guid_to_guid_str .= '-' . substr($hex_guid, 16, 4);
1553
		$hex_guid_to_guid_str .= '-' . substr($hex_guid, 20);
1554