src/Client/KeenIOClient.php
protected static function parseConfig($config, $default)
    {
        array_walk($default, function ($value, $key) use (&$config) {
            if (empty($config[$key]) || !isset($config[$key])) {
                $config[$key] = $value;
            }
        });

        return $config;
    }
protected static function parseConfig($config, $default)
    {
        array_walk($default, function ($value, $key) use (&$config) {
            if (empty($config[$key]) || !isset($config[$key])) {
                $config[$key] = $value;
            }
        });

        return $config;
    }
protected static function parseConfig ( $ config , $ default ) { array_walk ( $ default , function ( $ value , $ key ) use ( & $ config ) { if ( empty ( $ config [ $ key ] ) || ! isset ( $ config [ $ key ] ) ) { $ config [ $ key ] = $ value ; } } ) ; return $ config ; }
Attempt to parse config and apply defaults

@param  array  $config
@param  array  $default

@return array Returns the updated config array
Attempt to parse config and apply defaults