| Total Complexity | 9 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class NumericHelper |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Converts number to its ordinal English form. For example, converts 13 to 13th, 2 to 2nd etc. |
||
| 12 | * @param int|float|string $value The number to get its ordinal value. |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 2 | public static function toOrdinal($value): ?string |
|
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Returns string representation of a number value without thousands separators and with dot as decimal separator. |
||
| 42 | * @param int|float|string $value |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 6 | public static function normalize($value): string |
|
| 54 |