| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 29 | #[\Override] |
|
| 16 | public function isPossible(): bool |
||
| 17 | { |
||
| 18 | 29 | $this->value = str_replace(',', '.', preg_replace('/^(\*float\s*|\*double\s*)/', '', $this->value) ?? ''); |
|
| 19 | |||
| 20 | 29 | if (is_numeric($this->value)) { |
|
| 21 | 11 | return (string)(float)$this->value === $this->value; |
|
| 22 | } |
||
| 23 | 24 | return false; |
|
| 24 | } |
||
| 32 |