Layton/Library/Http/Headers.php
public static function toPreserveCase($name)
    {
        $params = explode('-', $name);
        $newName = [];
        foreach ($params as $param) {
            $newName[] = ucwords($param);
        }
        return implode('-', $newName);
    }
public static function toPreserveCase($name)
    {
        $params = explode('-', $name);
        $newName = [];
        foreach ($params as $param) {
            $newName[] = ucwords($param);
        }
        return implode('-', $newName);
    }
public static function toPreserveCase ( $ name ) { $ params = explode ( '-' , $ name ) ; $ newName = [ ] ; foreach ( $ params as $ param ) { $ newName [ ] = ucwords ( $ param ) ; } return implode ( '-' , $ newName ) ; }
Replace name to preserve case format.

@param string $name

@return string
Replace name to preserve case format .