Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait DoubleTrait |
||
13 | { |
||
14 | /** @var string */ |
||
15 | private static string $double_regex = '/^(([+-]?([0-9]+[.][0-9]*|[.][0-9]+)([e][+-]?[0-9]+)?)|NaN|[-]?FIN)$/D'; |
||
16 | |||
17 | /** |
||
18 | * @param string $value |
||
19 | * @param string $message |
||
20 | */ |
||
21 | protected static function validDouble(string $value, string $message = ''): void |
||
31 |