| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3.0261 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 25 | 6 | protected function getNormalizedValue(string $value)  | 
            |
| 26 |     { | 
            ||
| 27 | 6 |         if (!\is_numeric($value)) { | 
            |
| 28 | return 0;  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | 6 | $numberValue = \trim($value) * 1;  | 
            |
| 32 | |||
| 33 | 6 |         if ($this->getDecimals() !== null) { | 
            |
| 34 | 1 | $numberValue = \round($numberValue, $this->getDecimals());  | 
            |
| 35 | }  | 
            ||
| 36 | |||
| 37 | 6 | return $numberValue;  | 
            |
| 38 | }  | 
            ||
| 40 |