src/Tool/ConfigurationTrait.php
protected function mapConfiguration(array $configuration)
    {
        array_walk($configuration, function ($value, $key) use (&$configuration) {
            $newKey = lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $key))));
            $configuration[$newKey] = $value;
        });

        return $configuration;
    }
protected function mapConfiguration(array $configuration)
    {
        array_walk($configuration, function ($value, $key) use (&$configuration) {
            $newKey = lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $key))));
            $configuration[$newKey] = $value;
        });

        return $configuration;
    }
protected function mapConfiguration ( array $ configuration ) { array_walk ( $ configuration , function ( $ value , $ key ) use ( & $ configuration ) { $ newKey = lcfirst ( str_replace ( ' ' , '' , ucwords ( str_replace ( '_' , ' ' , $ key ) ) ) ) ; $ configuration [ $ newKey ] = $ value ; } ) ; return $ configuration ; }
Maps legacy configuration keys to updated keys.

@param  array   $configuration

@return array
Maps legacy configuration keys to updated keys .