Conditions | 3 |
Paths | 3 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | 20 | public static function assertRemove(mixed $value, string $message = ''): void |
|
30 | { |
||
31 | 20 | if (!is_bool($value)) { |
|
32 | 10 | $format = '' === $message ? 'Expected true or false. Got: %1$s' : $message; |
|
33 | 10 | $message = sprintf($format, self::valueToString($value)); |
|
34 | 10 | throw new InvalidArgumentException($message); |
|
35 | } |
||
38 |