| Conditions | 4 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 101 | public static function filterUnset(array $input): array |
|
| 18 | { |
||
| 19 | return array_filter($input, function ($value): bool { |
||
| 20 | 101 | if ($value === null) { |
|
| 21 | 92 | return false; |
|
| 22 | } |
||
| 23 | |||
| 24 | 98 | if (is_array($value) && empty($value)) { |
|
|
|
|||
| 25 | 83 | return false; |
|
| 26 | } |
||
| 27 | |||
| 28 | 96 | return true; |
|
| 29 | 101 | }); |
|
| 30 | } |
||
| 31 | |||
| 51 |