src/Helpers/HttpHelper.php
private function cleanEndpoint($endpoint)
    {
        $endpoint = ltrim($endpoint,"/");
        $endpoint = rtrim($endpoint,"/");
        return getenv('SONAR_URL') . "/api/v1/" . $endpoint;
    }
private function cleanEndpoint($endpoint)
    {
        $endpoint = ltrim($endpoint,"/");
        $endpoint = rtrim($endpoint,"/");
        return getenv('SONAR_URL') . "/api/v1/" . $endpoint;
    }
private function cleanEndpoint ( $ endpoint ) { $ endpoint = ltrim ( $ endpoint , "/" ) ; $ endpoint = rtrim ( $ endpoint , "/" ) ; return getenv ( 'SONAR_URL' ) . "/api/v1/" . $ endpoint ; }
Remove leading or trailing forward slashes from the endpoint.
@param $endpoint
@return string
Remove leading or trailing forward slashes from the endpoint .