Code Duplication    Length = 11-11 lines in 2 locations

lib/RandomLib/AbstractMcryptMixer.php 2 locations

@@ 129-139 (lines=11) @@
126
     *
127
     * @return string Resulting ciphertext
128
     */
129
    private function encryptBlock($input, $key)
130
    {
131
        if (!$input && !$key) {
132
            return '';
133
        }
134
135
        $this->prepareCipher($key);
136
        $result = mcrypt_generic($this->mcrypt, $input);
137
        mcrypt_generic_deinit($this->mcrypt);
138
139
        return $result;
140
    }
141
142
    /**
@@ 150-160 (lines=11) @@
147
     *
148
     * @return string Resulting plaintext
149
     */
150
    private function decryptBlock($input, $key)
151
    {
152
        if (!$input && !$key) {
153
            return '';
154
        }
155
156
        $this->prepareCipher($key);
157
        $result = mdecrypt_generic($this->mcrypt, $input);
158
        mcrypt_generic_deinit($this->mcrypt);
159
160
        return $result;
161
    }
162
163
    /**