| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function evaluateFieldValue(string $value, string $is_in, bool &$set): string |
||
|
|
|||
| 23 | { |
||
| 24 | $newValue = '0.000000'; |
||
| 25 | $set = true; |
||
| 26 | if (MathUtility::canBeInterpretedAsFloat($value) && |
||
| 27 | ((float)$value >= -180 && (float)$value <= 180) |
||
| 28 | ) { |
||
| 29 | $newValue = number_format((float)$value, 6); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $newValue; |
||
| 33 | } |
||
| 35 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.