From bfa48e6a1007e1c08ddcdc8ceb92e1008c7754cb Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sun, 3 Mar 2024 18:50:53 +0000 Subject: [PATCH] Hooks: Use private instead of public for internal functions Change-Id: Idf0e9b3f57ea8402ce7d4f4e542993cc944cfdd9 --- includes/Hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index 5bc306fc2..dccf1f8f3 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -365,7 +365,7 @@ class Hooks implements * @param string $name * @return string of HTML */ - public static function makeIcon( $name ) { + private static function makeIcon( $name ) { // Html::makeLink will pass this through rawElement return ''; } @@ -424,7 +424,7 @@ class Hooks implements * @param bool $unsetIcon should the icon field be unset? * @return array $item Updated menu item data */ - public static function updateMenuItemData( $item, $unsetIcon = true ) { + private static function updateMenuItemData( $item, $unsetIcon = true ) { $buttonClassProp = 'link-class'; $iconHtmlProp = 'link-html'; return self::updateItemData( $item, $buttonClassProp, $iconHtmlProp, $unsetIcon );