Conditions | 4 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
10 | 4 | public function removeRecursivelyNullValue(&$options): void |
|
11 | { |
||
12 | 4 | $options = array_filter((array) $options, fn ($val) => !is_null($val)); |
|
13 | |||
14 | 4 | foreach ($options as $key => $value) { |
|
15 | 4 | if (is_object($value) || is_array($value)) { |
|
16 | 4 | $this->removeRecursivelyNullValue($options[$key]); |
|
17 | } |
||
58 |