From: Roland Haeder Date: Fri, 14 Apr 2017 15:38:11 +0000 (+0200) Subject: added spaces X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=851c0284ee05ce5483decf491a7cd1f57ef420a4;p=friendica.git added spaces Signed-off-by: Roland Haeder --- diff --git a/include/cron.php b/include/cron.php index 8bc83a3721..c4299dd4c2 100644 --- a/include/cron.php +++ b/include/cron.php @@ -64,7 +64,7 @@ function cron_run(&$argv, &$argc){ // once daily run birthday_updates and then expire in background $d1 = get_config('system', 'last_expire_day'); - $d2 = intval(datetime_convert('UTC','UTC','now','d')); + $d2 = intval(datetime_convert('UTC', 'UTC', 'now', 'd')); if ($d2 != intval($d1)) { diff --git a/include/items.php b/include/items.php index c37dec47f8..6671302bdd 100644 --- a/include/items.php +++ b/include/items.php @@ -1293,7 +1293,7 @@ function tag_deliver($uid, $item_id) { */ $dlink = normalise_link(App::get_baseurl() . '/u/' . $u[0]['nickname']); - $cnt = preg_match_all('/[\@\!]\[url\=(.*?)\](.*?)\[\/url\]/ism', $item['body'], $matches,PREG_SET_ORDER); + $cnt = preg_match_all('/[\@\!]\[url\=(.*?)\](.*?)\[\/url\]/ism', $item['body'], $matches, PREG_SET_ORDER); if ($cnt) { foreach ($matches as $mtch) { if (link_compare($link, $mtch[1]) || link_compare($dlink, $mtch[1])) { @@ -1399,7 +1399,7 @@ function tgroup_check($uid, $item) { */ $dlink = normalise_link(App::get_baseurl() . '/u/' . $u[0]['nickname']); - $cnt = preg_match_all('/[\@\!]\[url\=(.*?)\](.*?)\[\/url\]/ism', $item['body'], $matches,PREG_SET_ORDER); + $cnt = preg_match_all('/[\@\!]\[url\=(.*?)\](.*?)\[\/url\]/ism', $item['body'], $matches, PREG_SET_ORDER); if ($cnt) { foreach ($matches as $mtch) { if (link_compare($link, $mtch[1]) || link_compare($dlink, $mtch[1])) { @@ -1785,8 +1785,8 @@ function fix_private_photos($s, $uid, $item = null, $cid = 0) { $x = strpos($i, '-'); if ($x) { - $res = substr($i, $x+1); - $i = substr($i,0, $x); + $res = substr($i, $x + 1); + $i = substr($i, 0, $x); $r = q("SELECT * FROM `photo` WHERE `resource-id` = '%s' AND `scale` = %d AND `uid` = %d", dbesc($i), intval($res), @@ -2119,7 +2119,7 @@ function drop_item($id, $interactive = true) { // clean up categories and tags so they don't end up as orphans $matches = false; - $cnt = preg_match_all('/<(.*?)>/', $item['file'], $matches,PREG_SET_ORDER); + $cnt = preg_match_all('/<(.*?)>/', $item['file'], $matches, PREG_SET_ORDER); if ($cnt) { foreach ($matches as $mtch) { file_tag_unsave_file($item['uid'], $item['id'], $mtch[1],true); @@ -2128,7 +2128,7 @@ function drop_item($id, $interactive = true) { $matches = false; - $cnt = preg_match_all('/\[(.*?)\]/', $item['file'], $matches,PREG_SET_ORDER); + $cnt = preg_match_all('/\[(.*?)\]/', $item['file'], $matches, PREG_SET_ORDER); if ($cnt) { foreach ($matches as $mtch) { file_tag_unsave_file($item['uid'], $item['id'], $mtch[1],false);