src/Leevel/Router/Router.php
protected function convertMatched(string $matched): string
    {
        if (false !== strpos($matched, '-')) {
            $matched = str_replace('-', '_', $matched);
        }

        if (false !== strpos($matched, '_')) {
            $matched = '_'.str_replace('_', ' ', $matched);
            $matched = ltrim(str_replace(' ', '', ucwords($matched)), '_');
        }

        return $matched;
    }
protected function convertMatched(string $matched): string
    {
        if (false !== strpos($matched, '-')) {
            $matched = str_replace('-', '_', $matched);
        }

        if (false !== strpos($matched, '_')) {
            $matched = '_'.str_replace('_', ' ', $matched);
            $matched = ltrim(str_replace(' ', '', ucwords($matched)), '_');
        }

        return $matched;
    }
转换匹配资源.

@param string $matched

@return string