]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
typing, added typing to some common_* calls in util.php
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 11:17:51 +0000 (13:17 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 11:19:12 +0000 (13:19 +0200)
lib/util.php

index dbc036c4613aa4e7dffc1429e69987f506c6b26d..cafe209a74f653939883bd65ccd6f5037311c639 100644 (file)
@@ -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);