summaryrefslogtreecommitdiffstats
path: root/application/helpers/filebin_helper.php
diff options
context:
space:
mode:
authorReikion <Reikion@users.noreply.github.com>2016-11-10 22:20:41 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-11-10 23:12:43 +0100
commitf988ee7facaa3d389dd55eb2c86cc476e8ee7b6f (patch)
treed5647dc2501e45f60e3456545da136dede69aec7 /application/helpers/filebin_helper.php
parent47ad013fb3cdbac5f0b1276b0197d6def055e95e (diff)
filebin_helper: Fix tabs
Changes by Florian Pritz: - Split off from "Make sure that return_bytes function returns int value" Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers/filebin_helper.php')
-rw-r--r--application/helpers/filebin_helper.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 3344e5ecf..05a136eb3 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -370,13 +370,13 @@ function files_are_equal($a, $b)
# Source: http://php.net/manual/en/function.ini-get.php#96996
function return_bytes($size_str)
{
- switch (substr ($size_str, -1))
- {
- case 'K': case 'k': return (int)$size_str * 1024;
- case 'M': case 'm': return (int)$size_str * 1048576;
- case 'G': case 'g': return (int)$size_str * 1073741824;
- default: return (int)$size_str;
- }
+ switch (substr ($size_str, -1))
+ {
+ case 'K': case 'k': return (int)$size_str * 1024;
+ case 'M': case 'm': return (int)$size_str * 1048576;
+ case 'G': case 'g': return (int)$size_str * 1073741824;
+ default: return (int)$size_str;
+ }
}
# vim: set noet: