public function DKIM_BodyC($body)
    {
        if (empty($body)) {
            return static::$LE;
        }
        // Normalize line endings
        $body = static::normalizeBreaks($body);

        //Reduce multiple trailing line breaks to a single one
        return rtrim($body, "\r\n") . static::$LE;
    }
public function DKIM_BodyC($body)
    {
        if (empty($body)) {
            return static::$LE;
        }
        // Normalize line endings
        $body = static::normalizeBreaks($body);

        //Reduce multiple trailing line breaks to a single one
        return rtrim($body, "\r\n") . static::$LE;
    }
public function DKIM_BodyC ( $ body ) { if ( empty ( $ body ) ) { return static :: $ LE ; } // Normalize line endings $ body = static :: normalizeBreaks ( $ body ) ; //Reduce multiple trailing line breaks to a single one return rtrim ( $ body , "\r\n" ) . static :: $ LE ; }
Generate a DKIM canonicalization body.
Uses the 'simple' algorithm from RFC6376 section 3.4.3.

@see    https://tools.ietf.org/html/rfc6376#section-3.4.3

@param string $body Message Body

@return string
Generate a DKIM canonicalization body . Uses the simple algorithm from RFC6376 section 3 . 4 . 3 .