We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d300b commit 848854fCopy full SHA for 848854f
src/InboundEmail.php
@@ -164,16 +164,16 @@ public function body()
164
165
public function isHtml()
166
{
167
- return empty($this->html());
+ return !empty($this->html());
168
}
169
170
public function isText()
171
172
- return empty($this->text());
+ return !empty($this->text());
173
174
175
public function isValid(): bool
176
177
- return $this->from() !== '' && ($this->text() !== '' || $this->html() !== '');
+ return $this->from() !== '' && ($this->isText()|| $this->isHtml());
178
179
0 commit comments