src/Google/AdsApi/Common/SoapLogMessageFormatter.php
private function formatSoapFaultForSummary($soapFault)
    {
        $soapFault = str_replace(["\r\n", "\n", "\r"], '', $soapFault);
        if (mb_strlen($soapFault, 'UTF-8') > $this->faultMsgMaxLength) {
            $soapFault = mb_substr($soapFault, 0, $this->faultMsgMaxLength, 'UTF-8') . '...';
        };

        return $soapFault;
    }
private function formatSoapFaultForSummary($soapFault)
    {
        $soapFault = str_replace(["\r\n", "\n", "\r"], '', $soapFault);
        if (mb_strlen($soapFault, 'UTF-8') > $this->faultMsgMaxLength) {
            $soapFault = mb_substr($soapFault, 0, $this->faultMsgMaxLength, 'UTF-8') . '...';
        };

        return $soapFault;
    }
private function formatSoapFaultForSummary ( $ soapFault ) { $ soapFault = str_replace ( [ "\r\n" , "\n" , "\r" ] , '' , $ soapFault ) ; if ( mb_strlen ( $ soapFault , 'UTF-8' ) > $ this -> faultMsgMaxLength ) { $ soapFault = mb_substr ( $ soapFault , 0 , $ this -> faultMsgMaxLength , 'UTF-8' ) . '...' ; } ; return $ soapFault ; }
Removes line breaks and truncates the SOAP fault if necessary.

@param string $soapFault
@return string
Removes line breaks and truncates the SOAP fault if necessary .