public static function parseDefaultOptions($options = [], $defaults = [])
    {
        array_walk($defaults, function ($value, $key) use (&$options) {
            if (!isset($options[$key])) {
                $options[$key] = $value;
            }
        });

        return $options;
    }
public static function parseDefaultOptions($options = [], $defaults = [])
    {
        array_walk($defaults, function ($value, $key) use (&$options) {
            if (!isset($options[$key])) {
                $options[$key] = $value;
            }
        });

        return $options;
    }
public static function parseDefaultOptions ( $ options = [ ] , $ defaults = [ ] ) { array_walk ( $ defaults , function ( $ value , $ key ) use ( & $ options ) { if ( ! isset ( $ options [ $ key ] ) ) { $ options [ $ key ] = $ value ; } } ) ; return $ options ; }
Parses give options against default options.

@param  array   $options
@param  array   $defaults

@return array
Parses give options against default options .