public function transform($config)
    {
        array_walk($config, function(&$value, $key) {
            if (in_array($key, $this->getKeys(), true)) {
                $value = $this->transformValue($value);
            } else {
                if ($this->shouldRecurse($value, $key)) {
                    $value = $this->transform($value);
                }
            }
        });

        return $config;
    }
public function transform($config)
    {
        array_walk($config, function(&$value, $key) {
            if (in_array($key, $this->getKeys(), true)) {
                $value = $this->transformValue($value);
            } else {
                if ($this->shouldRecurse($value, $key)) {
                    $value = $this->transform($value);
                }
            }
        });

        return $config;
    }
public function transform ( $ config ) { array_walk ( $ config , function ( & $ value , $ key ) { if ( in_array ( $ key , $ this -> getKeys ( ) , true ) ) { $ value = $ this -> transformValue ( $ value ) ; } else { if ( $ this -> shouldRecurse ( $ value , $ key ) ) { $ value = $ this -> transform ( $ value ) ; } } } ) ; return $ config ; }
Apply the `transformValue` function to all values in multidementional
associative array where the key matches one of the keys defined
on the RecursiveTransform.
@param  array $config
@return array transformed config
Apply the transformValue function to all values in multidementional associative array where the key matches one of the keys defined on the RecursiveTransform .