Upgrade to 3.0.3
This commit is contained in:
@@ -15,7 +15,7 @@ abstract class Facade
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
abstract protected static function instance();
|
||||
abstract public static function instance();
|
||||
|
||||
/**
|
||||
* Proxy for all public instance calls
|
||||
|
@@ -336,8 +336,14 @@ class Html
|
||||
*/
|
||||
public static function rel(string $rel = null, string $target = null)
|
||||
{
|
||||
$rel = trim($rel);
|
||||
|
||||
if ($target === '_blank') {
|
||||
return trim($rel . ' noopener noreferrer');
|
||||
if (empty($rel) === false) {
|
||||
return $rel;
|
||||
}
|
||||
|
||||
return trim($rel . ' noopener noreferrer', ' ');
|
||||
}
|
||||
|
||||
return $rel;
|
||||
|
@@ -346,8 +346,8 @@ class Str
|
||||
public static function float($value): string
|
||||
{
|
||||
$value = str_replace(',', '.', $value);
|
||||
$decimal = strlen(substr(strrchr($value, "."), 1));
|
||||
return number_format((float)$value, $decimal);
|
||||
$decimal = strlen(substr(strrchr($value, '.'), 1));
|
||||
return number_format((float)$value, $decimal, '.', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user