]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/noticesearch.php
Added more checked type-hints.
[quix0rs-gnu-social.git] / actions / noticesearch.php
index d4fc884f4bb2865bb6707222185476e1570e30e9..f1d6d1551640b9d771c780a22f4d7f080d648b5f 100644 (file)
@@ -50,7 +50,7 @@ class NoticesearchAction extends SearchAction
 {
     protected $q = null;
 
-    function prepare($args)
+    function prepare(array $args=array())
     {
         parent::prepare($args);
 
@@ -186,7 +186,7 @@ class SearchNoticeList extends NoticeList {
         $this->terms = $terms;
     }
 
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new SearchNoticeListItem($notice, $this->out, $this->terms);
     }
@@ -202,7 +202,7 @@ class SearchNoticeListItem extends NoticeListItem {
     function showContent()
     {
         // FIXME: URL, image, video, audio
-        $this->out->elementStart('p', array('class' => 'entry-content'));
+        $this->out->elementStart('p', array('class' => 'e-content'));
         if ($this->notice->rendered) {
             $this->out->raw($this->highlight($this->notice->rendered, $this->terms));
         } else {