lib/Elastica/Transport/Guzzle.php
protected function _getActionPath(Request $request): string
    {
        $action = $request->getPath();
        if ($action) {
            $action = '/'.\ltrim($action, '/');
        }

        if (!Util::isDateMathEscaped($action)) {
            $action = Util::escapeDateMath($action);
        }

        $query = $request->getQuery();

        if (!empty($query)) {
            $action .= '?'.\http_build_query(
                $this->sanityzeQueryStringBool($query)
                );
        }

        return $action;
    }
protected function _getActionPath(Request $request): string
    {
        $action = $request->getPath();
        if ($action) {
            $action = '/'.\ltrim($action, '/');
        }

        if (!Util::isDateMathEscaped($action)) {
            $action = Util::escapeDateMath($action);
        }

        $query = $request->getQuery();

        if (!empty($query)) {
            $action .= '?'.\http_build_query(
                $this->sanityzeQueryStringBool($query)
                );
        }

        return $action;
    }
protected function _getActionPath ( Request $ request ) : string { $ action = $ request -> getPath ( ) ; if ( $ action ) { $ action = '/' . \ ltrim ( $ action , '/' ) ; } if ( ! Util :: isDateMathEscaped ( $ action ) ) { $ action = Util :: escapeDateMath ( $ action ) ; } $ query = $ request -> getQuery ( ) ; if ( ! empty ( $ query ) ) { $ action .= '?' . \ http_build_query ( $ this -> sanityzeQueryStringBool ( $ query ) ) ; } return $ action ; }
Builds the action path url for each request.

@param Request $request

@return string
Builds the action path url for each request .