Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

@@ 356-359 (lines=4) @@
353
            str_pad('', strlen($text_string), $this->get_encryption_key(), STR_PAD_RIGHT)
354
        );
355
        $string_bits = str_split($text_string);
356
        foreach ($string_bits as $k => $v) {
357
            $temp = ord($v) + ord($key_bits[$k]);
358
            $string_bits[$k] = chr($temp > 255 ? ($temp - 256) : $temp);
359
        }
360
        return $this->_use_base64_encode
361
            ? base64_encode(implode('', $string_bits))
362
            : implode('', $string_bits);
@@ 388-391 (lines=4) @@
385
            str_pad('', strlen($encrypted_text), $this->get_encryption_key(), STR_PAD_RIGHT)
386
        );
387
        $string_bits = str_split($encrypted_text);
388
        foreach ($string_bits as $k => $v) {
389
            $temp = ord($v) - ord($key_bits[$k]);
390
            $string_bits[$k] = chr($temp < 0 ? ($temp + 256) : $temp);
391
        }
392
        return implode('', $string_bits);
393
    }
394