Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed May 2, 2024
1 parent 96675b2 commit 1852faa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Payloads/LoggedMailPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Spatie\LaravelRay\Payloads;

use Psy\Util\Str;
use Spatie\Ray\Payloads\Payload;
use ZBateson\MailMimeParser\Header\AddressHeader;
use ZBateson\MailMimeParser\Header\HeaderConsts;
Expand Down Expand Up @@ -71,7 +70,7 @@ protected static function getMailContent(string $loggedMail, IMessage $message):
$startOfHtml = strpos($loggedMail, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0', true);

if (! $startOfHtml) {
return $message->getContent() ?? $message->getHtmlContent() ?? '';
return $message->getContent() ?? $message->getHtmlContent() ?? '';
}

return substr($loggedMail, $startOfHtml) ?? '';
Expand Down

0 comments on commit 1852faa

Please sign in to comment.