Code Duplication    Length = 3-3 lines in 2 locations

htdocs/util2/cron/modules/cache_waypoint_pool.class.php 2 locations

@@ 145-147 (lines=3) @@
142
        $wp_value = substr($wp, 2);
143
        $b36_value = '';
144
        $wpValueLen = strlen($wp_value);
145
        for ($i = 0; $i < $wpValueLen; $i++) {
146
            $b36_value .= substr($b36_chars, strpos($wp_chars, substr($wp_value, $i, 1)), 1);
147
        }
148
149
        $dec_value = base_convert($b36_value, strlen($wp_chars), 10) + 1;
150
        $b36_value = strtoupper(base_convert($dec_value, 10, strlen($wp_chars)));
@@ 154-156 (lines=3) @@
151
152
        $wp_value = '';
153
        $b36ValueLen = strlen($b36_value);
154
        for ($i = 0; $i < $b36ValueLen; $i++) {
155
            $wp_value .= substr($wp_chars, strpos($b36_chars, substr($b36_value, $i, 1)), 1);
156
        }
157
158
        if (strlen($wp_value) < 4) {
159
            return $prefix . substr('0000' . $wp_value, - 4);