Conditions | 6 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | protected function evaluate($input, array $context = []): bool |
||
13 | { |
||
14 | if (is_object($input)) { |
||
15 | return false; |
||
16 | } |
||
17 | |||
18 | if (is_array($input) && empty($input)) { |
||
19 | return true; |
||
20 | } |
||
21 | |||
22 | if (is_string($input) && mb_strlen(trim($input)) === 0) { |
||
23 | return true; |
||
24 | } |
||
25 | |||
26 | return false; |
||
27 | } |
||
29 |