private function getRequestUri(ServerRequestInterface $request) : string
    {
        $uri = $request->getUri()->getPath();
        $query = $request->getUri()->getQuery();

        if (!empty($query)) {
            return $uri . '?' . \urldecode($query);
        }

        return $uri;
    }
private function getRequestUri(ServerRequestInterface $request) : string
    {
        $uri = $request->getUri()->getPath();
        $query = $request->getUri()->getQuery();

        if (!empty($query)) {
            return $uri . '?' . \urldecode($query);
        }

        return $uri;
    }
private function getRequestUri ( ServerRequestInterface $ request ) : string { $ uri = $ request -> getUri ( ) -> getPath ( ) ; $ query = $ request -> getUri ( ) -> getQuery ( ) ; if ( ! empty ( $ query ) ) { return $ uri . '?' . \ urldecode ( $ query ) ; } return $ uri ; }
Returns the full URI
@param ServerRequestInterface $request
@return string
Returns the full URI