From 84692b9850b75b7a950f7205b89b971b3bd4ba7d Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 13 Dec 2024 22:34:07 +0000 Subject: [PATCH] [tag_categories] more consistent naming --- ext/common_elements/theme.php | 4 ++-- ext/tag_categories/main.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/common_elements/theme.php b/ext/common_elements/theme.php index e6805a77f..c406e15e1 100644 --- a/ext/common_elements/theme.php +++ b/ext/common_elements/theme.php @@ -20,14 +20,14 @@ public function build_tag(string $tag, bool $show_underscores = true, bool $show $body = $tag; if (Extension::is_enabled(TagCategoriesInfo::KEY)) { - $category = TagCategories::getTagCategory($tag); + $category = TagCategories::get_tag_category($tag); if (!is_null($category)) { $tag_category_dict = TagCategories::getKeyedDict(); $props["class"] = "tag tag_category_$category"; $props["style"] = "color:".$tag_category_dict[$category]['color'].";"; if ($show_category === false) { - $body = TagCategories::getTagBody($tag); + $body = TagCategories::get_tag_body($tag); } } } diff --git a/ext/tag_categories/main.php b/ext/tag_categories/main.php index 11b3d3dee..871e7abbf 100644 --- a/ext/tag_categories/main.php +++ b/ext/tag_categories/main.php @@ -131,7 +131,7 @@ public static function getKeyedDict(): array return $tc_keyed_dict; } - public static function getTagCategory(string $tag): ?string + public static function get_tag_category(string $tag): ?string { $tag_category_dict = static::getKeyedDict(); $tag_split = explode(':', $tag, 2); @@ -141,7 +141,7 @@ public static function getTagCategory(string $tag): ?string return null; } - public static function getTagBody(string $tag): string + public static function get_tag_body(string $tag): string { $tag_category_dict = static::getKeyedDict(); $tag_split = explode(':', $tag, 2);