src/Route.php
private function parseCallablePlaceholders($fragment)
    {
        if (strpos($fragment, "{") !== false) {
            foreach ($this->params as $placeholder => $value) {
                if (strpos($fragment, "{" . $placeholder . "}") !== false) {
                    $fragment = str_replace("{" . $placeholder . "}", ucwords(str_replace("-", " ", $value)), $fragment);
                }
            }
        }

        return $fragment;
    }
private function parseCallablePlaceholders($fragment)
    {
        if (strpos($fragment, "{") !== false) {
            foreach ($this->params as $placeholder => $value) {
                if (strpos($fragment, "{" . $placeholder . "}") !== false) {
                    $fragment = str_replace("{" . $placeholder . "}", ucwords(str_replace("-", " ", $value)), $fragment);
                }
            }
        }

        return $fragment;
    }
private function parseCallablePlaceholders ( $ fragment ) { if ( strpos ( $ fragment , "{" ) !== false ) { foreach ( $ this -> params as $ placeholder => $ value ) { if ( strpos ( $ fragment , "{" . $ placeholder . "}" ) !== false ) { $ fragment = str_replace ( "{" . $ placeholder . "}" , ucwords ( str_replace ( "-" , " " , $ value ) ) , $ fragment ) ; } } } return $ fragment ; }
Parse and replace dynamic content on route action.

@param string $fragment Part of callable
@return string
Parse and replace dynamic content on route action .