]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix formatting
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 10 Jan 2018 03:27:40 +0000 (22:27 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 10 Jan 2018 03:27:40 +0000 (22:27 -0500)
buffer/buffer.php
diaspora/diaspora.php
libertree/libertree.php
pumpio/pumpio.php
statusnet/statusnet.php
tumblr/tumblr.php
wppost/wppost.php

index 6ecfb1894a4241b204d157e54d97cca1a271b60f..a85e843a8bb0afcfc15ce5e5aabde9c041f82fe1 100644 (file)
@@ -239,14 +239,17 @@ function buffer_post_local(&$a,&$b) {
 
 function buffer_send(App $a, &$b)
 {
-       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
                return;
+       }
 
-       if(! strstr($b['postopts'],'buffer'))
+       if(! strstr($b['postopts'],'buffer')) {
                return;
+       }
 
-       if($b['parent'] != $b['id'])
+       if($b['parent'] != $b['id']) {
                return;
+       }
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
index d2e2961dc2c7a428eed7f12c165e9640a5df2d61..6f54f4422c7319a21b0214e562115b4b5019ae47 100644 (file)
@@ -275,14 +275,17 @@ function diaspora_send(&$a,&$b) {
 
        logger('diaspora_send: invoked');
 
-       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
                return;
+       }
 
-       if(! strstr($b['postopts'],'diaspora'))
+       if(! strstr($b['postopts'],'diaspora')) {
                return;
+       }
 
-       if($b['parent'] != $b['id'])
+       if($b['parent'] != $b['id']) {
                return;
+       }
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
index f942bed3f4583f3277e67a2522c695278e65ad04..c421d07666290fbf77b5628a8e8904656ce103f4 100644 (file)
@@ -155,14 +155,17 @@ function libertree_send(&$a,&$b) {
 
        logger('libertree_send: invoked');
 
-       if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+       if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
                return;
+       }
 
-       if (! strstr($b['postopts'],'libertree'))
+       if (! strstr($b['postopts'],'libertree')) {
                return;
+       }
 
-       if ($b['parent'] != $b['id'])
+       if ($b['parent'] != $b['id']) {
                return;
+       }
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
index 52a48ae2051d3a1afad70f057b4eda176a31ce1e..af93218022e7979aa0e481b1e16c9922d8519669 100644 (file)
@@ -413,8 +413,9 @@ function pumpio_send(&$a,&$b) {
 
                logger("pumpio_send: receiver ".print_r($receiver, true));
 
-               if (!count($receiver) && ($b['private'] || !strstr($b['postopts'],'pumpio')))
+               if (!count($receiver) && ($b['private'] || !strstr($b['postopts'],'pumpio'))) {
                        return;
+               }
 
                // Dont't post if the post doesn't belong to us.
                // This is a check for forum postings
index 814722f45e4257300974a208a297fde1e9812139..084b233d1de679e85d0a705b156aa11d15e3b763 100644 (file)
@@ -568,15 +568,17 @@ function statusnet_post_hook(App $a, &$b)
                $nicknameplain = "@" . $nick;
 
                logger("statusnet_post_hook: comparing " . $nickname . " and " . $nicknameplain . " with " . $b["body"], LOGGER_DEBUG);
-               if ((strpos($b["body"], $nickname) === false) && (strpos($b["body"], $nicknameplain) === false))
+               if ((strpos($b["body"], $nickname) === false) && (strpos($b["body"], $nicknameplain) === false)) {
                        $b["body"] = $nickname . " " . $b["body"];
+               }
 
                logger("statusnet_post_hook: parent found " . print_r($orig_post, true), LOGGER_DEBUG);
        } else {
                $iscomment = false;
 
-               if ($b['private'] || !strstr($b['postopts'], 'statusnet'))
+               if ($b['private'] || !strstr($b['postopts'], 'statusnet')) {
                        return;
+               }
 
                // Dont't post if the post doesn't belong to us.
                // This is a check for forum postings
index 674093edf7f02ca47e9596f010cf7a51dc09aba9..c255f5a42a8089f5a4531274634af9cf356ccb33 100644 (file)
@@ -316,14 +316,17 @@ function tumblr_post_local(&$a, &$b) {
 
 function tumblr_send(&$a,&$b) {
 
-       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
                return;
+       }
 
-       if(! strstr($b['postopts'],'tumblr'))
+       if(! strstr($b['postopts'],'tumblr')) {
                return;
+       }
 
-       if($b['parent'] != $b['id'])
+       if($b['parent'] != $b['id']) {
                return;
+       }
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
index d6daa8c065a8318cf9279135be30930463427897..96e95979d34ebc7e7f14aab68e71f39d60742312 100644 (file)
@@ -191,14 +191,17 @@ function wppost_post_local(&$a, &$b) {
 
 function wppost_send(&$a,&$b) {
 
-       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+       if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
                return;
+       }
 
-       if(! strstr($b['postopts'],'wppost'))
+       if(! strstr($b['postopts'],'wppost')) {
                return;
+       }
 
-       if($b['parent'] != $b['id'])
+       if($b['parent'] != $b['id']) {
                return;
+       }
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings