src/ServiceBus/Internal/WrapTokenManager.php
private function _createScopeUri($targetUri)
    {
        $targetUriComponents = parse_url($targetUri);

        $authority = Resources::EMPTY_STRING;
        if ($this->_containsValidAuthority($targetUriComponents)) {
            $authority = $this->_createAuthority($targetUriComponents);
        }

        $scopeUri = 'http://'
            .$authority
            .$targetUriComponents[Resources::PHP_URL_HOST];

        if (array_key_exists(Resources::PHP_URL_PATH, $targetUriComponents)) {
            $scopeUri .= $targetUriComponents[Resources::PHP_URL_PATH];
        }

        return $scopeUri;
    }
private function _createScopeUri($targetUri)
    {
        $targetUriComponents = parse_url($targetUri);

        $authority = Resources::EMPTY_STRING;
        if ($this->_containsValidAuthority($targetUriComponents)) {
            $authority = $this->_createAuthority($targetUriComponents);
        }

        $scopeUri = 'http://'
            .$authority
            .$targetUriComponents[Resources::PHP_URL_HOST];

        if (array_key_exists(Resources::PHP_URL_PATH, $targetUriComponents)) {
            $scopeUri .= $targetUriComponents[Resources::PHP_URL_PATH];
        }

        return $scopeUri;
    }
private function _createScopeUri ( $ targetUri ) { $ targetUriComponents = parse_url ( $ targetUri ) ; $ authority = Resources :: EMPTY_STRING ; if ( $ this -> _containsValidAuthority ( $ targetUriComponents ) ) { $ authority = $ this -> _createAuthority ( $ targetUriComponents ) ; } $ scopeUri = 'http://' . $ authority . $ targetUriComponents [ Resources :: PHP_URL_HOST ] ; if ( array_key_exists ( Resources :: PHP_URL_PATH , $ targetUriComponents ) ) { $ scopeUri .= $ targetUriComponents [ Resources :: PHP_URL_PATH ] ; } return $ scopeUri ; }
Creates a SCOPE URI with specified target URI.

@param array $targetUri The target URI

@return string
Creates a SCOPE URI with specified target URI .