classes/phing/tasks/ext/visualizer/VisualizerTask.php
protected function processResponse(HTTP_Request2_Response $response): void
    {
        $status = $response->getStatus();
        $reasonPhrase = $response->getReasonPhrase();
        $this->log("Response status: $status", Project::MSG_DEBUG);
        $this->log("Response reason: $reasonPhrase", Project::MSG_DEBUG);

        if ($status !== VisualizerTask::STATUS_OK) {
            $message = "Request unsuccessful. Response from server: $status $reasonPhrase";
            $this->log($message, Project::MSG_ERR);
            throw new BuildException($message);
        }
    }
protected function processResponse(HTTP_Request2_Response $response): void
    {
        $status = $response->getStatus();
        $reasonPhrase = $response->getReasonPhrase();
        $this->log("Response status: $status", Project::MSG_DEBUG);
        $this->log("Response reason: $reasonPhrase", Project::MSG_DEBUG);

        if ($status !== VisualizerTask::STATUS_OK) {
            $message = "Request unsuccessful. Response from server: $status $reasonPhrase";
            $this->log($message, Project::MSG_ERR);
            throw new BuildException($message);
        }
    }
protected function processResponse ( HTTP_Request2_Response $ response ) : void { $ status = $ response -> getStatus ( ) ; $ reasonPhrase = $ response -> getReasonPhrase ( ) ; $ this -> log ( "Response status: $status" , Project :: MSG_DEBUG ) ; $ this -> log ( "Response reason: $reasonPhrase" , Project :: MSG_DEBUG ) ; if ( $ status !== VisualizerTask :: STATUS_OK ) { $ message = "Request unsuccessful. Response from server: $status $reasonPhrase" ; $ this -> log ( $ message , Project :: MSG_ERR ) ; throw new BuildException ( $ message ) ; } }
Receive server's response

This method validates `$response`'s status

@param HTTP_Request2_Response $response Response from server

@return void
Receive server s response