From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 11:17:51 +0000 (+0200) Subject: typing, added typing to some common_* calls in util.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e728e2aa8199b16911a98189c7f08d3b82270aad;p=quix0rs-gnu-social.git typing, added typing to some common_* calls in util.php --- diff --git a/lib/util.php b/lib/util.php index dbc036c461..cafe209a74 100644 --- a/lib/util.php +++ b/lib/util.php @@ -628,7 +628,7 @@ function common_render_content($text, Notice $notice) * @param Notice $notice in-progress or complete Notice object for context * @return string partially-rendered HTML */ -function common_linkify_mentions($text, $notice) +function common_linkify_mentions($text, Notice $notice) { $mentions = common_find_mentions($text, $notice); @@ -655,7 +655,7 @@ function common_linkify_mentions($text, $notice) return $text; } -function common_linkify_mention($mention) +function common_linkify_mention(array $mention) { $output = null; @@ -695,7 +695,7 @@ function common_linkify_mention($mention) * * @access private */ -function common_find_mentions($text, $notice) +function common_find_mentions($text, Notice $notice) { try { $sender = Profile::getKV('id', $notice->profile_id);