You are here

private function BaseApiAbstract::normalizeUri in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/src/BaseApiAbstract.php \Smartling\BaseApiAbstract::normalizeUri()
  2. 8.2 vendor/smartling/api-sdk-php/src/BaseApiAbstract.php \Smartling\BaseApiAbstract::normalizeUri()
  3. 8.3 vendor/smartling/api-sdk-php/src/BaseApiAbstract.php \Smartling\BaseApiAbstract::normalizeUri()

Parameters

string $uri:

Return value

string

1 call to BaseApiAbstract::normalizeUri()
BaseApiAbstract::sendRequest in vendor/smartling/api-sdk-php/src/BaseApiAbstract.php

File

vendor/smartling/api-sdk-php/src/BaseApiAbstract.php, line 349

Class

BaseApiAbstract
Class BaseApiAbstract

Namespace

Smartling

Code

private function normalizeUri($uri = '') {
  return rtrim($this
    ->getBaseUrl(), '/') . '/' . ltrim($uri, '/');
}