| Total Complexity | 15 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class MathUtils |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Decides whether the provided $value is in a range delimited by $start and $end values. |
||
| 11 | * |
||
| 12 | * - If $start is null, then the comparison is "lesser than $end" only |
||
| 13 | * - If $end is null, the comparison is "greater than $start" only |
||
| 14 | * - The $(start|end)Inclusive determine whether the comparison is "lesser/greater than", or "lesser/greater or equal than" |
||
| 15 | */ |
||
| 16 | public static function inRange( |
||
| 46 | } |
||
| 47 | |||
| 48 | public static function stringToNumber(?string $number): null|float|int |
||
| 57 |