@@ -38,14 +38,14 @@ discard block |
||
38 | 38 | while (count($codes) < $count) { |
39 | 39 | $randomString = ''; |
40 | 40 | for ($i = 0; $i < $length; $i++) { |
41 | - $randomString = (string) $randomString.substr($stringDigits, rand(0, strlen($stringDigits) - 1), 1); |
|
41 | + $randomString = (string)$randomString . substr($stringDigits, rand(0, strlen($stringDigits) - 1), 1); |
|
42 | 42 | } |
43 | 43 | if (!in_array($randomString, $codes)) { |
44 | - $codes[] = (string) $randomString; |
|
44 | + $codes[] = (string)$randomString; |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | - return (string) $codes; |
|
48 | + return (string)$codes; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $suffix = ['', 'KB', 'MB', 'GB', 'TB']; |
60 | 60 | $f_base = floor($base); |
61 | 61 | |
62 | - return round(pow(1024, $base - floor($base)), 1).$suffix[$f_base]; |
|
62 | + return round(pow(1024, $base - floor($base)), 1) . $suffix[$f_base]; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |