From: fabrixxm Date: Fri, 14 Apr 2017 14:13:49 +0000 (+0200) Subject: Fix coding standards issues 2 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dce0cd8d9a9645973247665198bf2066c28c7f5;p=friendica-addons.git Fix coding standards issues 2 --- diff --git a/securemail/securemail.php b/securemail/securemail.php index b5275e08..c92410a6 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -48,7 +48,7 @@ function securemail_uninstall() { * * @see App */ -function securemail_settings(App &$a, string &$s){ +function securemail_settings(App &$a, &$s){ if (!local_user()) { return; } @@ -103,7 +103,7 @@ function securemail_settings_post(App &$a, array &$b){ } $subject = 'Friendica - Secure Mail - Test'; - $message = 'This is a test message from your Friendica Secure Mail addon.\n\nBye!'; + $message = 'This is a test message from your Friendica Secure Mail addon.'; $params = array( 'uid' => local_user(), @@ -143,7 +143,7 @@ function securemail_settings_post(App &$a, array &$b){ * @see App */ function securemail_emailer_send_prepare(App &$a, array &$b) { - if (!x($b,'uid')) { + if (!x($b, 'uid')) { return; } @@ -170,7 +170,7 @@ function securemail_emailer_send_prepare(App &$a, array &$b) { $armored_encrypted = wordwrap( OpenPGP::enarmor($encrypted->to_bytes(), 'PGP MESSAGE'), 64, - '\n', + "\n", true );