From: Hypolite Petovan Date: Tue, 21 Mar 2017 14:19:53 +0000 (-0400) Subject: Merge pull request #3112 from Quix0r/rewrites/coding-convention X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9c2c4839968169a191084d6d2b0d629d82430e67;p=friendica.git Merge pull request #3112 from Quix0r/rewrites/coding-convention Coding convention applied - part 1 --- 9c2c4839968169a191084d6d2b0d629d82430e67 diff --cc include/socgraph.php index f43ad62d08,4dedd33d39..b1390980e9 --- a/include/socgraph.php +++ b/include/socgraph.php @@@ -32,25 -27,16 +32,25 @@@ require_once("include/Photo.php") * pointing to the same global contact id. * */ +function poco_load($cid, $uid = 0, $zcid = 0, $url = null) { + // Call the function "poco_load_worker" via the worker + proc_run(PRIORITY_LOW, "include/discover_poco.php", "poco_load", $cid, $uid, $zcid, base64_encode($url)); +} - - - -function poco_load($cid,$uid = 0,$zcid = 0,$url = null) { - +/** + * @brief Fetch POCO data from the worker + * + * @param integer $cid Contact ID + * @param integer $uid User ID + * @param integer $zcid Global Contact ID + * @param integer $url POCO address that should be polled + * + */ +function poco_load_worker($cid, $uid, $zcid, $url) { $a = get_app(); - if($cid) { - if((! $url) || (! $uid)) { + if ($cid) { + if ((! $url) || (! $uid)) { $r = q("select `poco`, `uid` from `contact` where `id` = %d limit 1", intval($cid) );