Code Duplication    Length = 3-3 lines in 3 locations

apps/user_ldap/lib/Access.php 3 locations

@@ 1640-1642 (lines=3) @@
1637
	private function convertObjectGUID2Str($oguid) {
1638
		$hex_guid = bin2hex($oguid);
1639
		$hex_guid_to_guid_str = '';
1640
		for($k = 1; $k <= 4; ++$k) {
1641
			$hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2);
1642
		}
1643
		$hex_guid_to_guid_str .= '-';
1644
		for($k = 1; $k <= 2; ++$k) {
1645
			$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
@@ 1644-1646 (lines=3) @@
1641
			$hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2);
1642
		}
1643
		$hex_guid_to_guid_str .= '-';
1644
		for($k = 1; $k <= 2; ++$k) {
1645
			$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
1646
		}
1647
		$hex_guid_to_guid_str .= '-';
1648
		for($k = 1; $k <= 2; ++$k) {
1649
			$hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2);
@@ 1648-1650 (lines=3) @@
1645
			$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
1646
		}
1647
		$hex_guid_to_guid_str .= '-';
1648
		for($k = 1; $k <= 2; ++$k) {
1649
			$hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2);
1650
		}
1651
		$hex_guid_to_guid_str .= '-' . substr($hex_guid, 16, 4);
1652
		$hex_guid_to_guid_str .= '-' . substr($hex_guid, 20);
1653