Skip to content

Commit 723ecd5

Browse files
committed
html or text can also sometimes be null. use empty here
1 parent baaaa7d commit 723ecd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InboundEmail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ public function body()
153153

154154
public function isHtml()
155155
{
156-
return $this->html() !== '';
156+
return empty($this->html());
157157
}
158158

159159
public function isText()
160160
{
161-
return $this->text() !== '';
161+
return empty($this->text());
162162
}
163163

164164
public function isValid(): bool

0 commit comments

Comments
 (0)