]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/NoticeTitle/NoticeTitlePlugin.php
Added missing type-hints for EndNoticeSave(Web) (different).
[quix0rs-gnu-social.git] / plugins / NoticeTitle / NoticeTitlePlugin.php
index 87e07d5a63fb75fdadf5d76e0adbec6cf5d4525d..e512cf5abe87645a410e9e448203d54eacc0accc 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, &$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)) {