| Conditions | 5 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | private function arrayFilterRecursive($input) |
||
|
|
|||
| 34 | { |
||
| 35 | if (empty($input)) { |
||
| 36 | return []; |
||
| 37 | } |
||
| 38 | foreach ($input as &$value) { |
||
| 39 | if (is_array($value) || is_object($value)) { |
||
| 40 | $value = $this->arrayFilterRecursive($value); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | return array_filter($input, [$this, 'cleanUpArray']); |
||
| 44 | } |
||
| 45 | |||
| 65 |