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