diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php
index 3f8efdc8..cb7e3418 100644
--- a/core/imageboard.pack.php
+++ b/core/imageboard.pack.php
@@ -139,7 +139,7 @@ class Image {
* @param int $limit
* @param string[] $tags
* @throws SCoreException
- * @return Array
+ * @return Image[]
*/
public static function find_images(/*int*/ $start, /*int*/ $limit, $tags=array()) {
assert(is_numeric($start));
diff --git a/ext/emoticons/main.php b/ext/emoticons/main.php
index a33b06c7..e6245daf 100644
--- a/ext/emoticons/main.php
+++ b/ext/emoticons/main.php
@@ -13,18 +13,32 @@
* add more emoticons by uploading images into that folder.
*/
+/**
+ * Class Emoticons
+ */
class Emoticons extends FormatterExtension {
+ /**
+ * @param string $text
+ * @return string
+ */
public function format(/*string*/ $text) {
$data_href = get_base_href();
$text = preg_replace("/:([a-z]*?):/s", "", $text);
return $text;
}
+ /**
+ * @param string $text
+ * @return string
+ */
public function strip(/*string*/ $text) {
return $text;
}
}
+/**
+ * Class EmoticonList
+ */
class EmoticonList extends Extension {
public function onPageRequest(PageRequestEvent $event) {
if($event->page_matches("emote/list")) {
diff --git a/ext/emoticons/theme.php b/ext/emoticons/theme.php
index dff9f98a..07f033dd 100644
--- a/ext/emoticons/theme.php
+++ b/ext/emoticons/theme.php
@@ -1,5 +1,8 @@
add_block(new Block("Random Image", $this->build_random_html($image), "left", 8));
}
- public function build_random_html(Image $image, $query=null)
- {
+ /**
+ * @param Image $image
+ * @param null|string $query
+ * @return string
+ */
+ public function build_random_html(Image $image, $query = null)
+ {
- $i_id = int_escape($image->id);
- $h_view_link = make_link("post/view/$i_id", $query);
- $h_thumb_link = $image->get_thumb_link();
- $h_tip = html_escape($image->get_tooltip());
- $tsize = get_thumbnail_size($image->width, $image->height);
+ $i_id = int_escape($image->id);
+ $h_view_link = make_link("post/view/$i_id", $query);
+ $h_thumb_link = $image->get_thumb_link();
+ $h_tip = html_escape($image->get_tooltip());
+ $tsize = get_thumbnail_size($image->width, $image->height);
- return "
+ return "