Fix coding standards issues 2

This commit is contained in:
fabrixxm 2017-04-14 16:13:49 +02:00
parent 41da664692
commit 0dce0cd8d9

View File

@ -48,7 +48,7 @@ function securemail_uninstall() {
* *
* @see App * @see App
*/ */
function securemail_settings(App &$a, string &$s){ function securemail_settings(App &$a, &$s){
if (!local_user()) { if (!local_user()) {
return; return;
} }
@ -103,7 +103,7 @@ function securemail_settings_post(App &$a, array &$b){
} }
$subject = 'Friendica - Secure Mail - Test'; $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( $params = array(
'uid' => local_user(), 'uid' => local_user(),
@ -143,7 +143,7 @@ function securemail_settings_post(App &$a, array &$b){
* @see App * @see App
*/ */
function securemail_emailer_send_prepare(App &$a, array &$b) { function securemail_emailer_send_prepare(App &$a, array &$b) {
if (!x($b,'uid')) { if (!x($b, 'uid')) {
return; return;
} }
@ -170,7 +170,7 @@ function securemail_emailer_send_prepare(App &$a, array &$b) {
$armored_encrypted = wordwrap( $armored_encrypted = wordwrap(
OpenPGP::enarmor($encrypted->to_bytes(), 'PGP MESSAGE'), OpenPGP::enarmor($encrypted->to_bytes(), 'PGP MESSAGE'),
64, 64,
'\n', "\n",
true true
); );