typed arrays
This commit is contained in:
parent
b83d0d3c14
commit
9f002b6bf7
18 changed files with 31 additions and 31 deletions
|
@ -213,7 +213,7 @@ class CommandEvent extends Event
|
|||
public array $args = [];
|
||||
|
||||
/**
|
||||
* #param string[] $args
|
||||
* @param string[] $args
|
||||
*/
|
||||
public function __construct(array $args)
|
||||
{
|
||||
|
|
|
@ -272,7 +272,7 @@ class AutoTagger extends Extension
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $tags_mixed
|
||||
* @param string[] $tags_mixed
|
||||
*/
|
||||
private function apply_auto_tags(array $tags_mixed): ?array
|
||||
{
|
||||
|
|
|
@ -111,7 +111,7 @@ class CommentListTheme extends Themelet
|
|||
/**
|
||||
* Add some comments to the page, probably in a sidebar.
|
||||
*
|
||||
* #param Comment[] $comments An array of Comment objects to be shown
|
||||
* @param Comment[] $comments An array of Comment objects to be shown
|
||||
*/
|
||||
public function display_recent_comments(array $comments)
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ class CommentListTheme extends Themelet
|
|||
/**
|
||||
* Show comments for an image.
|
||||
*
|
||||
* #param Comment[] $comments
|
||||
* @param Comment[] $comments
|
||||
*/
|
||||
public function display_image_comments(Image $image, array $comments, bool $postbox)
|
||||
{
|
||||
|
@ -147,7 +147,7 @@ class CommentListTheme extends Themelet
|
|||
/**
|
||||
* Show comments made by a user.
|
||||
*
|
||||
* #param Comment[] $comments
|
||||
* @param Comment[] $comments
|
||||
*/
|
||||
public function display_recent_user_comments(array $comments, User $user)
|
||||
{
|
||||
|
|
|
@ -137,7 +137,7 @@ class ExtManager extends Extension
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $extras
|
||||
* @param string[] $extras
|
||||
*/
|
||||
private function write_config(array $extras)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ use function MicroHTML\rawHTML;
|
|||
class ExtManagerTheme extends Themelet
|
||||
{
|
||||
/**
|
||||
* #param ExtensionInfo[] $extensions
|
||||
* @param ExtensionInfo[] $extensions
|
||||
*/
|
||||
public function display_table(Page $page, array $extensions, bool $editable)
|
||||
{
|
||||
|
|
|
@ -67,7 +67,7 @@ class PostListBuildingEvent extends Event
|
|||
public array $parts = [];
|
||||
|
||||
/**
|
||||
* #param string[] $search
|
||||
* @param string[] $search
|
||||
*/
|
||||
public function __construct(array $search)
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ and of course start organising your images :-)
|
|||
}
|
||||
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
public function display_page(Page $page, array $images)
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ and of course start organising your images :-)
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $parts
|
||||
* @param string[] $parts
|
||||
*/
|
||||
public function display_admin_block(array $parts)
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ and of course start organising your images :-)
|
|||
|
||||
|
||||
/**
|
||||
* #param string[] $search_terms
|
||||
* @param string[] $search_terms
|
||||
*/
|
||||
protected function build_navigation(int $page_number, int $total_pages, array $search_terms): string
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ and of course start organising your images :-)
|
|||
}
|
||||
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
protected function build_table(array $images, ?string $query): string
|
||||
{
|
||||
|
@ -139,7 +139,7 @@ and of course start organising your images :-)
|
|||
}
|
||||
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
protected function display_page_header(Page $page, array $images)
|
||||
{
|
||||
|
@ -165,7 +165,7 @@ and of course start organising your images :-)
|
|||
}
|
||||
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
protected function display_page_images(Page $page, array $images)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ class NotATag extends Extension
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $tags_mixed
|
||||
* @param string[] $tags_mixed
|
||||
*/
|
||||
private function scan(array $tags_mixed)
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ class NotATag extends Extension
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $tags
|
||||
* @param string[] $tags
|
||||
*/
|
||||
private function strip(array $tags): array
|
||||
{
|
||||
|
|
|
@ -415,7 +415,7 @@ class OuroborosAPI extends Extension
|
|||
|
||||
/**
|
||||
* Wrapper for getting a list of posts
|
||||
* #param string[] $tags
|
||||
* @param string[] $tags
|
||||
*/
|
||||
protected function postIndex(int $limit, int $page, array $tags)
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ class RandomListTheme extends Themelet
|
|||
protected array $search_terms;
|
||||
|
||||
/**
|
||||
* #param string[] $search_terms
|
||||
* @param string[] $search_terms
|
||||
*/
|
||||
public function set_page(array $search_terms)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ class RandomListTheme extends Themelet
|
|||
}
|
||||
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
public function display_page(Page $page, array $images)
|
||||
{
|
||||
|
|
|
@ -485,7 +485,7 @@ class Ratings extends Extension
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $context
|
||||
* @param string[] $context
|
||||
*/
|
||||
private function no_rating_query(array $context): bool
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ class ReportImageTheme extends Themelet
|
|||
}
|
||||
|
||||
/**
|
||||
* #param ImageReport[] $reports
|
||||
* @param ImageReport[] $reports
|
||||
*/
|
||||
public function display_image_banner(Image $image, array $reports)
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ class TagSetEvent extends Event
|
|||
public array $metatags;
|
||||
|
||||
/**
|
||||
* #param string[] $tags
|
||||
* @param string[] $tags
|
||||
*/
|
||||
public function __construct(Image $image, array $tags)
|
||||
{
|
||||
|
|
|
@ -346,7 +346,7 @@ class TagHistory extends Extension
|
|||
/**
|
||||
* This function is called just before an images tag are changed.
|
||||
*
|
||||
* #param string[] $tags
|
||||
* @param string[] $tags
|
||||
*/
|
||||
private function add_tag_history(Image $image, array $tags)
|
||||
{
|
||||
|
|
|
@ -530,7 +530,7 @@ class TagList extends Extension
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $search
|
||||
* @param string[] $search
|
||||
*/
|
||||
private function add_refine_block(Page $page, array $search)
|
||||
{
|
||||
|
|
|
@ -314,8 +314,8 @@ class Upload extends Extension
|
|||
|
||||
/**
|
||||
* Handle an upload.
|
||||
* #param string[] $file
|
||||
* #param string[] $tags
|
||||
* @param mixed[] $file
|
||||
* @param string[] $tags
|
||||
*/
|
||||
private function try_upload(array $file, array $tags, ?string $source = null, ?int $replace_id = null): array
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Shimmie2;
|
|||
class CustomIndexTheme extends IndexTheme
|
||||
{
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
public function display_page(Page $page, array $images)
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ class CustomIndexTheme extends IndexTheme
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $search_terms
|
||||
* @param string[] $search_terms
|
||||
*/
|
||||
protected function build_navigation(int $page_number, int $total_pages, array $search_terms): string
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Shimmie2;
|
|||
class CustomIndexTheme extends IndexTheme
|
||||
{
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
public function display_page(Page $page, array $images)
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ class CustomIndexTheme extends IndexTheme
|
|||
}
|
||||
|
||||
/**
|
||||
* #param string[] $search_terms
|
||||
* @param string[] $search_terms
|
||||
*/
|
||||
protected function build_navigation(int $page_number, int $total_pages, array $search_terms): string
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ class CustomIndexTheme extends IndexTheme
|
|||
}
|
||||
|
||||
/**
|
||||
* #param Image[] $images
|
||||
* @param Image[] $images
|
||||
*/
|
||||
protected function build_table(array $images, ?string $query): string
|
||||
{
|
||||
|
|
Reference in a new issue