src/VK/OAuth/VKOAuth.php
protected function checkOAuthResponse(TransportClientResponse $response) {
        $this->checkHttpStatus($response);

        $body = $response->getBody();
        $decode_body = $this->decodeBody($body);

        if (isset($decode_body[static::RESPONSE_KEY_ERROR])) {
            throw new VKOAuthException("{$decode_body[static::RESPONSE_KEY_ERROR_DESCRIPTION]}. OAuth error {$decode_body[static::RESPONSE_KEY_ERROR]}");
        }

        return $decode_body;
    }
protected function checkOAuthResponse(TransportClientResponse $response) {
        $this->checkHttpStatus($response);

        $body = $response->getBody();
        $decode_body = $this->decodeBody($body);

        if (isset($decode_body[static::RESPONSE_KEY_ERROR])) {
            throw new VKOAuthException("{$decode_body[static::RESPONSE_KEY_ERROR_DESCRIPTION]}. OAuth error {$decode_body[static::RESPONSE_KEY_ERROR]}");
        }

        return $decode_body;
    }
protected function checkOAuthResponse ( TransportClientResponse $ response ) { $ this -> checkHttpStatus ( $ response ) ; $ body = $ response -> getBody ( ) ; $ decode_body = $ this -> decodeBody ( $ body ) ; if ( isset ( $ decode_body [ static :: RESPONSE_KEY_ERROR ] ) ) { throw new VKOAuthException ( "{$decode_body[static::RESPONSE_KEY_ERROR_DESCRIPTION]}. OAuth error {$decode_body[static::RESPONSE_KEY_ERROR]}" ) ; } return $ decode_body ; }
Decodes the authorization response and checks its status code and whether it has an error.

@param TransportClientResponse $response

@return mixed

@throws VKClientException
@throws VKOAuthException
Decodes the authorization response and checks its status code and whether it has an error .