src/Neutrino/Support/Str.php
public static function capitalize($value)
    {
        static $capitalizeCache;

        $key = $value;

        if (isset($capitalizeCache[$key])) {
            return $capitalizeCache[$key];
        }

        return $capitalizeCache[$key] = ucwords(strtolower($value));
    }
public static function capitalize($value)
    {
        static $capitalizeCache;

        $key = $value;

        if (isset($capitalizeCache[$key])) {
            return $capitalizeCache[$key];
        }

        return $capitalizeCache[$key] = ucwords(strtolower($value));
    }
Convert a value to Capitalize case.

@param  string $value

@return string