private function formatResponse(SimpleXMLElement $response)
    {
        $result = $this->convertXmlObject($response);

        if (!is_array($result->AddressValidationResult)) {
            return [$result->AddressValidationResult];
        }

        return $result->AddressValidationResult;
    }
private function formatResponse(SimpleXMLElement $response)
    {
        $result = $this->convertXmlObject($response);

        if (!is_array($result->AddressValidationResult)) {
            return [$result->AddressValidationResult];
        }

        return $result->AddressValidationResult;
    }
private function formatResponse ( SimpleXMLElement $ response ) { $ result = $ this -> convertXmlObject ( $ response ) ; if ( ! is_array ( $ result -> AddressValidationResult ) ) { return [ $ result -> AddressValidationResult ] ; } return $ result -> AddressValidationResult ; }
Format the response.

@param SimpleXMLElement $response

@return array
Format the response .