Spelling, style
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Nov 2009 16:30:59 +0000 (09:30 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Nov 2009 16:51:23 +0000 (09:51 -0700)
framework/Crypt/lib/Horde/Crypt/Smime.php
framework/Mime/lib/Horde/Mime/Part.php

index 6f1097a..bd82f5e 100644 (file)
@@ -441,7 +441,9 @@ class Horde_Crypt_Smime extends Horde_Crypt
         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);
         }
index c9d4678..682a33d 100644 (file)
@@ -1928,7 +1928,7 @@ class Horde_Mime_Part
      *
      * @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)