From: Michael Date: Wed, 22 Apr 2020 15:22:39 +0000 (+0000) Subject: Code standards X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f7993acad370f87c899306a08e42a7693c13452;p=friendica.git Code standards --- diff --git a/include/items.php b/include/items.php index 2d73308582..582fbb0933 100644 --- a/include/items.php +++ b/include/items.php @@ -144,7 +144,7 @@ function query_page_info($url, $photo = "", $keywords = false, $keyword_blacklis function add_page_keywords($url, $photo = "", $keywords = false, $keyword_blacklist = "") { $data = query_page_info($url, $photo, $keywords, $keyword_blacklist); - if (empty($data['keywords']) || !is_array($data['keywords'])) { + if (empty($data["keywords"]) || !is_array($data["keywords"])) { return ''; } @@ -166,7 +166,7 @@ function add_page_keywords($url, $photo = "", $keywords = false, $keyword_blackl function get_page_keywords($url, $photo = "", $keywords = false, $keyword_blacklist = "") { $data = query_page_info($url, $photo, $keywords, $keyword_blacklist); - if (empty($data['keywords']) || !is_array($data['keywords'])) { + if (empty($data["keywords"]) || !is_array($data["keywords"])) { return []; } diff --git a/src/Model/UserItem.php b/src/Model/UserItem.php index d38ed6d55e..6a228c098a 100644 --- a/src/Model/UserItem.php +++ b/src/Model/UserItem.php @@ -207,7 +207,7 @@ class UserItem } // Or the contact is a mentioned forum - $tags = DBA::select('term', ['url'], ['otype' => term::OBJECT_TYPE_POST, 'oid' => $item['id'], 'type' => Term::MENTION, 'uid' => $uid]); + $tags = DBA::select('term', ['url'], ['otype' => Term::OBJECT_TYPE_POST, 'oid' => $item['id'], 'type' => Term::MENTION, 'uid' => $uid]); while ($tag = DBA::fetch($tags)) { $condition = ['nurl' => Strings::normaliseLink($tag['url']), 'uid' => $uid, 'notify_new_posts' => true, 'contact-type' => Contact::TYPE_COMMUNITY]; if (DBA::exists('contact', $condition)) {