From: Roland Häder Date: Tue, 20 Dec 2016 09:39:06 +0000 (+0100) Subject: Coding convention: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b6ad2fc4754185708d00d3be4c4a2aebcb73e7e;p=friendica.git Coding convention: - added curly braces - added space between "if" and brace - also added TODO (old-lost code?) Signed-off-by: Roland Häder --- diff --git a/mod/hcard.php b/mod/hcard.php index d53405009a..8d79dd0546 100644 --- a/mod/hcard.php +++ b/mod/hcard.php @@ -47,7 +47,11 @@ function hcard_init(App &$a) { header('Link: <' . App::get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false); $dfrn_pages = array('request', 'confirm', 'notify', 'poll'); +<<<<<<< upstream/develop foreach ($dfrn_pages as $dfrn) { +======= + foreach($dfrn_pages as $dfrn) { +>>>>>>> HEAD~65 $a->page['htmlhead'] .= "\r\n"; } diff --git a/mod/noscrape.php b/mod/noscrape.php index 758ce8ba53..33255f0fa4 100644 --- a/mod/noscrape.php +++ b/mod/noscrape.php @@ -26,6 +26,7 @@ function noscrape_init(App &$a) { $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$keywords); $keywords = explode(',', $keywords); + /// @TODO This query's result is not being used (see below), maybe old-lost code? $r = q("SELECT `photo` FROM `contact` WHERE `self` AND `uid` = %d", intval($a->profile['uid'])); diff --git a/mod/profile.php b/mod/profile.php index 8519f7e82e..28b508dc0e 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -62,7 +62,11 @@ function profile_init(App &$a) { header('Link: <' . App::get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false); $dfrn_pages = array('request', 'confirm', 'notify', 'poll'); +<<<<<<< upstream/develop foreach ($dfrn_pages as $dfrn) { +======= + foreach($dfrn_pages as $dfrn) { +>>>>>>> HEAD~65 $a->page['htmlhead'] .= "\r\n"; } $a->page['htmlhead'] .= "\r\n";