src/transformer/utils/deep_merge_arrays.php
Showing 1 of 1 total issue
Function deep_merge_arrays
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
function deep_merge_arrays($arr1, $arr2) { // Merge the second array into the first one foreach ($arr2 as $key => $value) { // If the key exists in the first array and both values are arrays, recurse if (array_key_exists($key, $arr1) && is_array($arr1[$key]) && is_array($value)) {
- Read upRead up
- Create a ticketCreate a ticket