private function getValidationData($markup)
    {
        $this->httpRequestParameters['body'] = $markup;

        $reponse = $this->httpClient->post(
            $this->configuration[self::ENDPOINT_CONFIG_KEY],
            $this->httpRequestParameters
        );
        $responseData = $reponse->getBody()->getContents();
        $validationData = json_decode($responseData, true);
        if ($validationData === null) {
            throw new Exception('Unable to parse W3C Markup Validation Service response.');
        }

        return $validationData;
    }
private function getValidationData($markup)
    {
        $this->httpRequestParameters['body'] = $markup;

        $reponse = $this->httpClient->post(
            $this->configuration[self::ENDPOINT_CONFIG_KEY],
            $this->httpRequestParameters
        );
        $responseData = $reponse->getBody()->getContents();
        $validationData = json_decode($responseData, true);
        if ($validationData === null) {
            throw new Exception('Unable to parse W3C Markup Validation Service response.');
        }

        return $validationData;
    }
private function getValidationData ( $ markup ) { $ this -> httpRequestParameters [ 'body' ] = $ markup ; $ reponse = $ this -> httpClient -> post ( $ this -> configuration [ self :: ENDPOINT_CONFIG_KEY ] , $ this -> httpRequestParameters ) ; $ responseData = $ reponse -> getBody ( ) -> getContents ( ) ; $ validationData = json_decode ( $ responseData , true ) ; if ( $ validationData === null ) { throw new Exception ( 'Unable to parse W3C Markup Validation Service response.' ) ; } return $ validationData ; }
Sends a validation request to a W3C Markup Validation Service
and returns decoded validation data.

@param string $markup Markup to get validation data for.
@return array Validation data for provided markup.
Sends a validation request to a W3C Markup Validation Service and returns decoded validation data .