Skip to content

Commit bf3220f

Browse files
committed
Place static methods at the bottom
1 parent d522d76 commit bf3220f

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/FileSize.php

+22-22
Original file line numberDiff line numberDiff line change
@@ -232,28 +232,6 @@ private function parseNonNumericString($string)
232232
throw new Exception("Could not parse \"{$string}\"");
233233
}
234234

235-
/**
236-
* Get the number of bytes per factor. (2^10 = 1,024; 2^20 = 1,048,576...)
237-
*
238-
* @param int $factor
239-
* @return int
240-
*/
241-
private static function byteFactor($factor)
242-
{
243-
return 2 ** (10 * $factor);
244-
}
245-
246-
/**
247-
* Format a numeric string into a byte count (integer).
248-
*
249-
* @param string $number A numeric string or float
250-
* @return int
251-
*/
252-
private static function byteFormat($number)
253-
{
254-
return (int) ceil($number);
255-
}
256-
257235
/**
258236
* Change the filesize unit measurement using known units.
259237
*
@@ -278,4 +256,26 @@ private function convert($size, $fromUnit, $toUnit, $precision = null)
278256

279257
return $precision ? round($size, $precision) : $size;
280258
}
259+
260+
/**
261+
* Get the number of bytes per factor. (2^10 = 1,024; 2^20 = 1,048,576...)
262+
*
263+
* @param int $factor
264+
* @return int
265+
*/
266+
private static function byteFactor($factor)
267+
{
268+
return 2 ** (10 * $factor);
269+
}
270+
271+
/**
272+
* Format a numeric string into a byte count (integer).
273+
*
274+
* @param string $number A numeric string or float
275+
* @return int
276+
*/
277+
private static function byteFormat($number)
278+
{
279+
return (int) ceil($number);
280+
}
281281
}

0 commit comments

Comments
 (0)