Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

@@ 510-513 (lines=4) @@
507
            )
508
        );
509
        $string_bits = str_split($text_string);
510
        foreach ($string_bits as $k => $v) {
511
            $temp = ord($v) + ord($key_bits[$k]);
512
            $string_bits[$k] = chr($temp > 255 ? ($temp - 256) : $temp);
513
        }
514
        $encrypted_text = implode('', $string_bits);
515
        $encrypted_text .= EE_Encryption::ACME_ENCRYPTION_FLAG;
516
        return $this->_use_base64_encode
@@ 557-560 (lines=4) @@
554
            )
555
        );
556
        $string_bits = str_split($encrypted_text);
557
        foreach ($string_bits as $k => $v) {
558
            $temp = ord($v) - ord($key_bits[$k]);
559
            $string_bits[$k] = chr($temp < 0 ? ($temp + 256) : $temp);
560
        }
561
        return implode('', $string_bits);
562
    }
563