]> git.mxchange.org Git - friendica.git/blobdiff - mod/message.php
Merge pull request #3078 from Hypolite/issue/#3039-mod-2of3
[friendica.git] / mod / message.php
index ef62a7898177d1b673e76b3bb2e1c8668d14f607..5f5f9f98efbd8f432048fcf2dc1f7ec87a6f7d5d 100644 (file)
@@ -4,7 +4,7 @@ require_once('include/acl_selectors.php');
 require_once('include/message.php');
 require_once('include/Smilies.php');
 
-function message_init(App &$a) {
+function message_init(App $a) {
 
        $tabs = '';
 
@@ -40,7 +40,7 @@ function message_init(App &$a) {
 
 }
 
-function message_post(App &$a) {
+function message_post(App $a) {
 
        if (! local_user()) {
                notice( t('Permission denied.') . EOL);
@@ -160,7 +160,7 @@ function item_redir_and_replace_images($body, $images, $cid) {
        $newbody = $newbody . $origbody;
 
        $cnt = 0;
-       foreach($images as $image) {
+       foreach ($images as $image) {
                // We're depending on the property of 'foreach' (specified on the PHP website) that
                // it loops over the array starting from the first element and going sequentially
                // to the last element
@@ -173,7 +173,7 @@ function item_redir_and_replace_images($body, $images, $cid) {
 
 
 
-function message_content(App &$a) {
+function message_content(App $a) {
 
        $o = '';
        nav_set_selected('messages');
@@ -231,7 +231,7 @@ function message_content(App &$a) {
                                intval($a->argv[2]),
                                intval(local_user())
                        );
-                       if($r) {
+                       if ($r) {
                                info( t('Message deleted.') . EOL );
                        }
                        //goaway(App::get_baseurl(true) . '/message' );