Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/664/head
KnifeLemon 2 weeks ago committed by GitHub
parent 847a0d51f0
commit 41dc0e3678
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -711,18 +711,19 @@ class Request
case 'p': // PentaByte
case 'pb':
$value *= 1024;
return (int)$value;
case 't': // Terabyte
case 'tb':
$value *= 1024;
return (int)$value;
case 'g': // Gigabyte
case 'gb':
$value *= 1024;
return (int)$value;
case 'm': // Megabyte
case 'mb':
$value *= 1024;
return (int)$value;
case 'k': // Kilobyte
case 'kb':
$value *= 1024;
return (int)$value;
case 'b': // Byte
return (int)$value;
default:

Loading…
Cancel
Save