protected function needToUpdateResponse(Response $response)
    {
        $isJsonResponse = $response instanceof JsonResponse || $response->headers->contains('content-type',
                'application/json');

        return $isJsonResponse && !$this->storage->isEmpty();
    }
protected function needToUpdateResponse(Response $response)
    {
        $isJsonResponse = $response instanceof JsonResponse || $response->headers->contains('content-type',
                'application/json');

        return $isJsonResponse && !$this->storage->isEmpty();
    }
protected function needToUpdateResponse ( Response $ response ) { $ isJsonResponse = $ response instanceof JsonResponse || $ response -> headers -> contains ( 'content-type' , 'application/json' ) ; return $ isJsonResponse && ! $ this -> storage -> isEmpty ( ) ; }
Check if debugger has to update the response.

@param  Response $response
@return bool
Check if debugger has to update the response .