From 385b3f4adf86606e03941171c136d8f2eb2b35c2 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 24 Apr 2020 16:36:12 +0200 Subject: fix: most of PHPStan errors --- app/fn/fn.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/fn') diff --git a/app/fn/fn.php b/app/fn/fn.php index 243e056..6b312a2 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 = ['é', 'à', 'è', 'ç', 'ù', 'ï', 'î', ' ']; -- cgit v1.2.3