From f07561343173b15a3b3e2c9dae08f1576c99575a Mon Sep 17 00:00:00 2001 From: ddevsr Date: Mon, 31 Oct 2022 10:01:45 +0700 Subject: [PATCH] refactor: more html_helper with solidus --- system/Helpers/html_helper.php | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/system/Helpers/html_helper.php b/system/Helpers/html_helper.php index 1c68bfa3e8..04660ed881 100755 --- a/system/Helpers/html_helper.php +++ b/system/Helpers/html_helper.php @@ -229,8 +229,6 @@ if (! function_exists('link_tag')) { */ function link_tag($href = '', string $rel = 'stylesheet', string $type = 'text/css', string $title = '', string $media = '', bool $indexPage = false, string $hreflang = ''): string { - $link = ''; + return ''; } } @@ -423,7 +421,7 @@ if (! function_exists('source')) { $source .= ' ' . $attributes; } - return $source . ' />'; + return $source . _solidus() . '>'; } } @@ -442,7 +440,7 @@ if (! function_exists('track')) { . '" kind="' . $kind . '" srclang="' . $srcLanguage . '" label="' . $label - . '" />'; + . '"' . _solidus() . '>'; } } @@ -496,7 +494,7 @@ if (! function_exists('param')) { return ''; + . '" ' . $attributes . _solidus() . '>'; } } @@ -518,7 +516,7 @@ if (! function_exists('embed')) { return '\n"; + . $attributes . _solidus() . ">\n"; } }