Autarky\Routing\Router::makePath PHP Method

makePath() protected method

protected makePath ( $path )
    protected function makePath($path)
    {
        if ($this->currentPrefix !== null) {
            $path = rtrim($this->currentPrefix, '/') . '/' . ltrim($path, '/');
        }
        if (substr($path, 0, 1) !== '/') {
            $path = '/' . $path;
        }
        if ($path == '/') {
            return $path;
        }
        return rtrim($path, '/');
    }