typing, added typing to some common_* calls in util.php
This commit is contained in:
parent
2096c18e57
commit
e728e2aa81
@ -628,7 +628,7 @@ function common_render_content($text, Notice $notice)
|
|||||||
* @param Notice $notice in-progress or complete Notice object for context
|
* @param Notice $notice in-progress or complete Notice object for context
|
||||||
* @return string partially-rendered HTML
|
* @return string partially-rendered HTML
|
||||||
*/
|
*/
|
||||||
function common_linkify_mentions($text, $notice)
|
function common_linkify_mentions($text, Notice $notice)
|
||||||
{
|
{
|
||||||
$mentions = common_find_mentions($text, $notice);
|
$mentions = common_find_mentions($text, $notice);
|
||||||
|
|
||||||
@ -655,7 +655,7 @@ function common_linkify_mentions($text, $notice)
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
function common_linkify_mention($mention)
|
function common_linkify_mention(array $mention)
|
||||||
{
|
{
|
||||||
$output = null;
|
$output = null;
|
||||||
|
|
||||||
@ -695,7 +695,7 @@ function common_linkify_mention($mention)
|
|||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function common_find_mentions($text, $notice)
|
function common_find_mentions($text, Notice $notice)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$sender = Profile::getKV('id', $notice->profile_id);
|
$sender = Profile::getKV('id', $notice->profile_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user