]> git.mxchange.org Git - friendica.git/commitdiff
added spaces + curly braces
authorRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 10:36:03 +0000 (11:36 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 10:36:27 +0000 (11:36 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
include/notifier.php
include/socgraph.php
mod/profile_photo.php
mod/profiles.php
mod/redir.php
mod/regmod.php
mod/settings.php

index 8823834c1d361ed1535afa6ae92d5b52708c07cc..9e1450ba2b5004a676f62375aab0f686290f3c23 100644 (file)
@@ -558,7 +558,7 @@ function notifier_run(&$argv, &$argc){
        if($slap && count($url_recipients) && ($public_message || $push_notify) && $normal_mode) {
                if(!get_config('system','dfrn_only')) {
                        foreach($url_recipients as $url) {
-                               if($url) {
+                               if ($url) {
                                        logger('notifier: urldelivery: ' . $url);
                                        $deliver_status = slapper($owner,$url,$slap);
                                        /// @TODO Redeliver/queue these items on failure, though there is no contact record
index 11dcbf1e72b980de5d84f9e8efbde04847ed50bf..6e53f2ae72eeb5a5ef1065329d86d064105f2ebf 100644 (file)
@@ -93,19 +93,19 @@ function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
 
                if(isset($entry->urls)) {
                        foreach($entry->urls as $url) {
-                               if($url->type == 'profile') {
+                               if ($url->type == 'profile') {
                                        $profile_url = $url->value;
                                        continue;
                                }
-                               if($url->type == 'webfinger') {
+                               if ($url->type == 'webfinger') {
                                        $connect_url = str_replace('acct:' , '', $url->value);
                                        continue;
                                }
                        }
                }
-               if(isset($entry->photos)) {
+               if (isset($entry->photos)) {
                        foreach($entry->photos as $photo) {
-                               if($photo->type == 'profile') {
+                               if ($photo->type == 'profile') {
                                        $profile_photo = $photo->value;
                                        continue;
                                }
@@ -1334,7 +1334,7 @@ function poco_discover_server_users($data, $server) {
                $username = "";
                if (isset($entry->urls)) {
                        foreach($entry->urls as $url)
-                               if($url->type == 'profile') {
+                               if ($url->type == 'profile') {
                                        $profile_url = $url->value;
                                        $urlparts = parse_url($profile_url);
                                        $username = end(explode("/", $urlparts["path"]));
@@ -1378,11 +1378,11 @@ function poco_discover_server($data, $default_generation = 0) {
 
                if(isset($entry->urls)) {
                        foreach($entry->urls as $url) {
-                               if($url->type == 'profile') {
+                               if ($url->type == 'profile') {
                                        $profile_url = $url->value;
                                        continue;
                                }
-                               if($url->type == 'webfinger') {
+                               if ($url->type == 'webfinger') {
                                        $connect_url = str_replace('acct:' , '', $url->value);
                                        continue;
                                }
index 371effd0cb0e961cd01675c899cdc53a64ade8b0..70ea45afa4e923003e97e853687f9dec52571d00 100644 (file)
@@ -124,8 +124,9 @@ function profile_photo_post(&$a) {
                                info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
                                // Update global directory in background
                                $url = App::get_baseurl() . '/profile/' . $a->user['nickname'];
-                               if($url && strlen(get_config('system','directory')))
+                               if ($url && strlen(get_config('system','directory'))) {
                                        proc_run(PRIORITY_LOW, "include/directory.php", $url);
+                               }
 
                                require_once('include/profile_update.php');
                                profile_change();
@@ -223,8 +224,9 @@ function profile_photo_content(&$a) {
 
                        // Update global directory in background
                        $url = $_SESSION['my_url'];
-                       if($url && strlen(get_config('system','directory')))
+                       if ($url && strlen(get_config('system','directory'))) {
                                proc_run(PRIORITY_LOW, "include/directory.php", $url);
+                       }
 
                        goaway(App::get_baseurl() . '/profiles');
                        return; // NOTREACHED
index 53372f83d2bb6ba1fbd6c0fbdd3092f0b8db7c5b..5aa41c90d88d3f62939e10b78e23cfcdeab7a85c 100644 (file)
@@ -502,8 +502,9 @@ function profiles_post(&$a) {
 
                        // Update global directory in background
                        $url = $_SESSION['my_url'];
-                       if($url && strlen(get_config('system','directory')))
+                       if ($url && strlen(get_config('system','directory'))) {
                                proc_run(PRIORITY_LOW, "include/directory.php", $url);
+                       }
 
                        require_once('include/profile_update.php');
                        profile_change();
index 5dc5ad372416e2788a376f8dafb1bc903615c217..762d373d53ed302368a684cfb20cfdbd437aba75 100644 (file)
@@ -63,12 +63,14 @@ function redir_init(&$a) {
                        . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest . $quiet );
        }
 
-       if(local_user())
+       if (local_user()) {
                $handle = $a->user['nickname'] . '@' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'://')+3);
-       if(remote_user())
+       }
+       if (remote_user()) {
                $handle = $_SESSION['handle'];
+       }
 
-       if($url) {
+       if ($url) {
                $url = str_replace('{zid}','&zid=' . $handle,$url);
                goaway($url);
        }
index 56d91364f5bddbc0136d35acb7cef0fe9c6fcb12..92433b6d8270f574697364e5446743600aefa47f 100644 (file)
@@ -36,8 +36,9 @@ function user_allow($hash) {
        );
        if (dbm::is_result($r) && $r[0]['net-publish']) {
                $url = App::get_baseurl() . '/profile/' . $user[0]['nickname'];
-               if($url && strlen(get_config('system','directory')))
+               if ($url && strlen(get_config('system','directory'))) {
                        proc_run(PRIORITY_LOW, "include/directory.php", $url);
+               }
        }
 
        push_lang($register[0]['language']);
index 3ea4d7acf8fc297db18a96805f6fc85b175a7a51..2998b5dfac021a0de04517c9da2790334199ca27 100644 (file)
@@ -629,8 +629,9 @@ function settings_post(&$a) {
        if(($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
                // Update global directory in background
                $url = $_SESSION['my_url'];
-               if($url && strlen(get_config('system','directory')))
+               if ($url && strlen(get_config('system','directory'))) {
                        proc_run(PRIORITY_LOW, "include/directory.php", $url);
+               }
        }
 
        require_once('include/profile_update.php');