We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac5aaf1 + 0ab95e4 commit 8e1a682Copy full SHA for 8e1a682
src/CloudinaryEngine.php
@@ -379,11 +379,11 @@ public function getReadableSize()
379
private function getHumanReadableSize($sizeInBytes)
380
{
381
if ($sizeInBytes >= 1073741824) {
382
- return number_format($bytes / 1073741824, 2) . ' GB';
+ return number_format($sizeInBytes / 1073741824, 2) . ' GB';
383
} elseif ($sizeInBytes >= 1048576) {
384
- return number_format($bytes / 1048576, 2) . ' MB';
+ return number_format($sizeInBytes / 1048576, 2) . ' MB';
385
} elseif ($sizeInBytes >= 1024) {
386
- return number_format($bytes / 1024, 2) . ' KB';
+ return number_format($sizeInBytes / 1024, 2) . ' KB';
387
} elseif ($sizeInBytes > 1) {
388
return $sizeInBytes . ' bytes';
389
} elseif ($sizeInBytes == 1) {
0 commit comments