Code Duplication    Length = 3-3 lines in 3 locations

code/model/LDAPUtil.php 3 locations

@@ 27-29 (lines=3) @@
24
    {
25
        $hex_guid = bin2hex($object_guid);
26
        $hex_guid_to_guid_str = '';
27
        for ($k = 1; $k <= 4; ++$k) {
28
            $hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2);
29
        }
30
        $hex_guid_to_guid_str .= '-';
31
        for ($k = 1; $k <= 2; ++$k) {
32
            $hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
@@ 31-33 (lines=3) @@
28
            $hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2);
29
        }
30
        $hex_guid_to_guid_str .= '-';
31
        for ($k = 1; $k <= 2; ++$k) {
32
            $hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
33
        }
34
        $hex_guid_to_guid_str .= '-';
35
        for ($k = 1; $k <= 2; ++$k) {
36
            $hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2);
@@ 35-37 (lines=3) @@
32
            $hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2);
33
        }
34
        $hex_guid_to_guid_str .= '-';
35
        for ($k = 1; $k <= 2; ++$k) {
36
            $hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2);
37
        }
38
        $hex_guid_to_guid_str .= '-' . substr($hex_guid, 16, 4);
39
        $hex_guid_to_guid_str .= '-' . substr($hex_guid, 20);
40