src/AbstractConnection.php
public function getBaseUri()
    {
        if (empty($this->baseUriChecked)) {
            if (preg_match('#^https?://[^/]+$#', $this->baseUri)) {
                $this->baseUri .= '/';
            }
            $this->baseUriChecked = true;
        }

        return $this->baseUri;
    }
public function getBaseUri()
    {
        if (empty($this->baseUriChecked)) {
            if (preg_match('#^https?://[^/]+$#', $this->baseUri)) {
                $this->baseUri .= '/';
            }
            $this->baseUriChecked = true;
        }

        return $this->baseUri;
    }
public function getBaseUri ( ) { if ( empty ( $ this -> baseUriChecked ) ) { if ( preg_match ( '#^https?://[^/]+$#' , $ this -> baseUri ) ) { $ this -> baseUri .= '/' ; } $ this -> baseUriChecked = true ; } return $ this -> baseUri ; }
Return API base uri.
Adds trailing slash if uri is domain only.
@return string
Return API base uri . Adds trailing slash if uri is domain only .