Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/664/head
KnifeLemon 3 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 'p': // PentaByte
case 'pb': case 'pb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 't': // Terabyte case 't': // Terabyte
case 'tb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'g': // Gigabyte case 'g': // Gigabyte
case 'gb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'm': // Megabyte case 'm': // Megabyte
case 'mb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'k': // Kilobyte case 'k': // Kilobyte
case 'kb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'b': // Byte case 'b': // Byte
return (int)$value; return (int)$value;
default: default:

Loading…
Cancel
Save