src/Request/LushRequest.php
protected function formattedRequestBody()
    {
        if (isset($this->payload['options']['body_format']) && $this->payload['options']['body_format'] == 'json') {
            return json_encode($this->payload['parameters']);
        }

        return http_build_query($this->payload['parameters']);
    }
protected function formattedRequestBody()
    {
        if (isset($this->payload['options']['body_format']) && $this->payload['options']['body_format'] == 'json') {
            return json_encode($this->payload['parameters']);
        }

        return http_build_query($this->payload['parameters']);
    }
protected function formattedRequestBody ( ) { if ( isset ( $ this -> payload [ 'options' ] [ 'body_format' ] ) && $ this -> payload [ 'options' ] [ 'body_format' ] == 'json' ) { return json_encode ( $ this -> payload [ 'parameters' ] ) ; } return http_build_query ( $ this -> payload [ 'parameters' ] ) ; }
Get formatted request body based on body_format.

@return null|string
Get formatted request body based on body_format .