DmitryDulepov\Realurl\Decoder\UrlDecoder::getUrlPath PHP Method

getUrlPath() protected method

Parses the URL and validates the result. This function will strip possible query string from speaking URL (we only need to decode the speaking URL!)
protected getUrlPath ( ) : array
return array
    protected function getUrlPath()
    {
        $urlPath = @parse_url('/' . ltrim($this->speakingUri, '/'), PHP_URL_PATH);
        if (!is_string($urlPath)) {
            $this->throw404('Current URL is invalid');
        }
        return ltrim($urlPath, '/');
    }