Code Duplication    Length = 4-4 lines in 2 locations

core/EE_Encryption.core.php 2 locations

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