Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

@@ 359-362 (lines=4) @@
356
            str_pad('', strlen($text_string), $this->get_encryption_key(), STR_PAD_RIGHT)
357
        );
358
        $string_bits = str_split($text_string);
359
        foreach ($string_bits as $k => $v) {
360
            $temp = ord($v) + ord($key_bits[$k]);
361
            $string_bits[$k] = chr($temp > 255 ? ($temp - 256) : $temp);
362
        }
363
        $encrypted_text = implode('', $string_bits);
364
        $encrypted_text .= EE_Encryption::ACME_ENCRYPTION_FLAG;
365
        return $this->_use_base64_encode
@@ 397-400 (lines=4) @@
394
            str_pad('', strlen($encrypted_text), $this->get_encryption_key(), STR_PAD_RIGHT)
395
        );
396
        $string_bits = str_split($encrypted_text);
397
        foreach ($string_bits as $k => $v) {
398
            $temp = ord($v) - ord($key_bits[$k]);
399
            $string_bits[$k] = chr($temp < 0 ? ($temp + 256) : $temp);
400
        }
401
        return implode('', $string_bits);
402
    }
403