Fix mixing tabs and spaces

This commit is contained in:
Kijin Sung 2023-01-17 21:04:51 +09:00
parent ca35eda1da
commit e1a3961973

View file

@ -624,9 +624,9 @@ function utf8_clean($str)
{
// Check if the input is a valid UTF-8 string.
$str = (string)$str;
if (!utf8_check($str))
{
$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);
if (!utf8_check($str))
{
$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);
}
// Normalize the text content.
@ -643,8 +643,8 @@ function utf8_clean($str)
// Remove excessively long sequences (more than 3) of combining diacritical marks.
$str = preg_replace('/(\pM{3})\pM+/u', '$1', $str);
return $str;
return $str;
}
/**
@ -741,10 +741,10 @@ function is_empty_html_content($str)
**/
if (!function_exists('is_countable'))
{
function is_countable($var)
function is_countable($var)
{
return is_array($var) || $var instanceof Countable;
}
return is_array($var) || $var instanceof Countable;
}
}
/**