original_string: protected static function mergeSettings($Arr1, $Arr2)
      {
          foreach ($Arr2 as $key => $Value) {
              if (array_key_exists($key, $Arr1) && is_array($Value)) {
                  $Arr1[$key] = self::mergeSettings($Arr1[$key], $Arr2[$key]);
              } else {
                  $Arr1[$key] = $Value;
              }
          }
          return $Arr1;
      }
code: protected static function mergeSettings($Arr1, $Arr2)
      {
          foreach ($Arr2 as $key => $Value) {
              if (array_key_exists($key, $Arr1) && is_array($Value)) {
                  $Arr1[$key] = self::mergeSettings($Arr1[$key], $Arr2[$key]);
              } else {
                  $Arr1[$key] = $Value;
              }
          }
          return $Arr1;
      }
code_tokens: protected static function mergeSettings ( $ Arr1 , $ Arr2 ) { foreach ( $ Arr2 as $ key => $ Value ) { if ( array_key_exists ( $ key , $ Arr1 ) && is_array ( $ Value ) ) { $ Arr1 [ $ key ] = self :: mergeSettings ( $ Arr1 [ $ key ] , $ Arr2 [ $ key ] ) ; } else { $ Arr1 [ $ key ] = $ Value ; } } return $ Arr1 ; }
docstring: method for merging setting files
docstring_tokens: method for merging setting files