public function merge(array $settings, string $field = null, bool $mergeArrays = false)
    {
        $merged = self::mergeSettings($this->get($field), $settings, $mergeArrays);

        if (!is_null($field)) {
            $this->put($field, $merged);
        } else {
            $this->set($merged);
        }
    }
public function merge(array $settings, string $field = null, bool $mergeArrays = false)
    {
        $merged = self::mergeSettings($this->get($field), $settings, $mergeArrays);

        if (!is_null($field)) {
            $this->put($field, $merged);
        } else {
            $this->set($merged);
        }
    }
public function merge ( array $ settings , string $ field = null , bool $ mergeArrays = false ) { $ merged = self :: mergeSettings ( $ this -> get ( $ field ) , $ settings , $ mergeArrays ) ; if ( ! is_null ( $ field ) ) { $ this -> put ( $ field , $ merged ) ; } else { $ this -> set ( $ merged ) ; } }
Merges the given settings into the given field

@api
@since 0.1.0
@param array       $settings    The settings to merge into the given field.
@param string|null $field       The field to merge the given settings into.
@param bool       $mergeArrays Whether to merge indexed arrays.
@return void
Merges the given settings into the given field