From e6b1d514d1162ee34622276af3ce5faf8f1a95a8 Mon Sep 17 00:00:00 2001 From: jgen Date: Fri, 25 Apr 2014 23:22:34 -0400 Subject: [PATCH] Some more type hinting via the comments. --- core/imageboard.pack.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 3992f79b..3c0d61c9 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -68,7 +68,7 @@ class Image { /** * Find an image by ID * - * @param $id + * @param int $id * @return Image */ public static function by_id(/*int*/ $id) { @@ -81,7 +81,7 @@ class Image { /** * Find an image by hash * - * @param $hash + * @param string $hash * @return Image */ public static function by_hash(/*string*/ $hash) { @@ -110,8 +110,8 @@ class Image { /** * Search for an array of images * - * @param $start - * @param $limit + * @param int $start + * @param int $limit * @param array $tags * @throws SCoreException * @return Array @@ -423,6 +423,8 @@ class Image { /** * Set the image's source URL + * + * @param string $new_source */ public function set_source(/*string*/ $new_source) { global $database; @@ -978,6 +980,9 @@ class Image { class Tag { /** * Remove any excess fluff from a user-input tag + * + * @param string $tag + * @return mixed */ public static function sanitise($tag) { assert(is_string($tag));