]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/NoticeTitle/NoticeTitlePlugin.php
Last type-hint is an array, added.
[quix0rs-gnu-social.git] / plugins / NoticeTitle / NoticeTitlePlugin.php
index 87e07d5a63fb75fdadf5d76e0adbec6cf5d4525d..2dbaa356723b224eeb4f6abe764997aad34eb68b 100644 (file)
@@ -124,13 +124,13 @@ class NoticeTitlePlugin extends Plugin
      * Validate notice title before saving
      *
      * @param Action  $action    NewNoticeAction being executed
-     * @param integer &$authorId Author ID
+     * @param Profile $author    Profile object for the author of the notice being saved
      * @param string  &$text     Text of the notice
      * @param array   &$options  Options array
      *
      * @return boolean hook value
      */
-    function onStartNoticeSaveWeb($action, &$authorId, &$text, &$options)
+    function onStartNoticeSaveWeb(Action $action, Profile $author, &$content, array &$options)
     {
         $title = $action->trimmed('notice_title');
         if (!empty($title) && $this->isAllowedRichEdit()) {
@@ -154,7 +154,7 @@ class NoticeTitlePlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onEndNoticeSaveWeb($action, $notice)
+    function onEndNoticeSaveWeb(Action $action, Notice $notice)
     {
         if (!empty($notice)) {
 
@@ -203,7 +203,7 @@ class NoticeTitlePlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onEndRssEntryArray($notice, &$entry)
+    function onEndRssEntryArray(Notice $notice, array &$entry)
     {
         $title = Notice_title::fromNotice($notice);