| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Num |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @param int $min |
||
| 10 | * @param int $max |
||
| 11 | * |
||
| 12 | * @return int |
||
| 13 | * @throws \Exception |
||
| 14 | */ |
||
| 15 | 4 | public static function randomInt($min = PHP_INT_MIN, $max = PHP_INT_MAX) |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param int|float|double $number |
||
| 22 | * @param int $decimals |
||
| 23 | * @param string $decPoint |
||
| 24 | * @param string $thousandsSep |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 2 | public static function format($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',') |
|
| 34 |