protected function prefix(string $uri): string
    {
        $trimmed = \trim($this->getLastGroupPrefix(), '/') . '/' . \trim($uri, '/');

        if (! $trimmed) {
            return '/';
        }

        if (\strpos($trimmed, '/') === 0) {
            return $trimmed;
        }

        return '/' . $trimmed;
    }
protected function prefix(string $uri): string
    {
        $trimmed = \trim($this->getLastGroupPrefix(), '/') . '/' . \trim($uri, '/');

        if (! $trimmed) {
            return '/';
        }

        if (\strpos($trimmed, '/') === 0) {
            return $trimmed;
        }

        return '/' . $trimmed;
    }
protected function prefix ( string $ uri ) : string { $ trimmed = \ trim ( $ this -> getLastGroupPrefix ( ) , '/' ) . '/' . \ trim ( $ uri , '/' ) ; if ( ! $ trimmed ) { return '/' ; } if ( \ strpos ( $ trimmed , '/' ) === 0 ) { return $ trimmed ; } return '/' . $ trimmed ; }
Prefix the given URI with the last prefix.

@param string $uri

@return string
Prefix the given URI with the last prefix .