file_put_contents($input, $text);
unset($text);
- $privkey = (is_null($params['passphrase'])) ? $params['privkey'] : array($params['privkey'], $params['passphrase']);
+ $privkey = is_null($params['passphrase'])
+ ? $params['privkey']
+ : array($params['privkey'], $params['passphrase']);
if (openssl_pkcs7_decrypt($input, $output, $params['pubkey'], $privkey)) {
return file_get_contents($output);
}
*
* @param string $text The text to search.
*
- * @return array 1st element: Header position, 2nd element: Lenght of
+ * @return array 1st element: Header position, 2nd element: Length of
* trailing EOL.
*/
static protected function _findHeader($text)