Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
28 | public static function evaluate(array|float|string|null $value = 0, array|float|int|string $digits = 0): array|float|string |
||
29 | 57 | { |
|
30 | if (is_array($value) || is_array($digits)) { |
||
31 | 57 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $digits); |
|
32 | 12 | } |
|
33 | |||
34 | return Round::down($value, $digits); |
||
35 | } |
||
37 |