| Total Complexity | 6 |
| Total Lines | 34 |
| 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 ... |
||
| 12 | * @param int $number The number to get its ordinal value. |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 1 | public static function toOrdinal(int $number): ?string |
|
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns string representation of a number value without thousands separators and with dot as decimal separator. |
||
| 34 | * @param int|float|string $value |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 5 | public static function normalize($value): string |
|
| 44 |