Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

@@ 504-507 (lines=4) @@
501
            )
502
        );
503
        $string_bits = str_split($text_string);
504
        foreach ($string_bits as $k => $v) {
505
            $temp = ord($v) + ord($key_bits[$k]);
506
            $string_bits[$k] = chr($temp > 255 ? ($temp - 256) : $temp);
507
        }
508
        $encrypted_text = implode('', $string_bits);
509
        $encrypted_text .= EE_Encryption::ACME_ENCRYPTION_FLAG;
510
        return $this->_use_base64_encode
@@ 551-554 (lines=4) @@
548
            )
549
        );
550
        $string_bits = str_split($encrypted_text);
551
        foreach ($string_bits as $k => $v) {
552
            $temp = ord($v) - ord($key_bits[$k]);
553
            $string_bits[$k] = chr($temp < 0 ? ($temp + 256) : $temp);
554
        }
555
        return implode('', $string_bits);
556
    }
557