| Total Complexity | 8 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 13 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 9 | trait SanitizesNumbers |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param int|string|float|null $number |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | 137 | protected function sanitize(int|string|float|null $number): string |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param int|string|float|null $number |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | 58 | private function is_good_float(int|string|float|null $number): bool |
|
| 63 |