diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-25 17:53:44 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-25 17:53:44 +0200 |
commit | 0efeef6b6693d62675ec8a45e73c71f69e0a0362 (patch) | |
tree | 4b86b3bd62217fc4c60e2827e30a45209ce82605 /app/fn | |
parent | bd16dc7c6fc630a6b59ca3b041dde146ab50c72b (diff) | |
parent | 385b3f4adf86606e03941171c136d8f2eb2b35c2 (diff) | |
download | wcms-0efeef6b6693d62675ec8a45e73c71f69e0a0362.tar.gz wcms-0efeef6b6693d62675ec8a45e73c71f69e0a0362.zip |
Merge branch master with implement-exception
Diffstat (limited to 'app/fn')
-rw-r--r-- | app/fn/fn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/fn/fn.php b/app/fn/fn.php index a7fd929..737590f 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -24,7 +24,7 @@ function readablesize($bytes, $base = 2 ** 10) } elseif ($bytes < $base ** 3) { $num = round($bytes / $base ** 2, 1); $unit = 'M' . $i; - } elseif ($bytes < $base ** 4) { + } else { $num = round($bytes / $base ** 3, 1); $unit = 'G' . $i; } @@ -87,7 +87,7 @@ function arrayclean($input) return $output; } -function idclean(string $input) +function idclean(string $input): string { $input = urldecode($input); $search = ['é', 'à', 'è', 'ç', 'ù', 'ï', 'î', ' ']; |