File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -157,23 +157,23 @@ public function forward($recipients)
157
157
});
158
158
}
159
159
160
- public function body ()
160
+ public function body (): ? string
161
161
{
162
162
return $ this ->isHtml () ? $ this ->html () : $ this ->text ();
163
163
}
164
164
165
- public function isHtml ()
165
+ public function isHtml (): bool
166
166
{
167
- return empty ($ this ->html ());
167
+ return ! empty ($ this ->html ());
168
168
}
169
169
170
- public function isText ()
170
+ public function isText (): bool
171
171
{
172
- return empty ($ this ->text ());
172
+ return ! empty ($ this ->text ());
173
173
}
174
174
175
175
public function isValid (): bool
176
176
{
177
- return $ this ->from () !== '' && ($ this ->text () !== '' || $ this ->html () !== '' );
177
+ return $ this ->from () !== '' && ($ this ->isText () || $ this ->isHtml () );
178
178
}
179
179
}
You can’t perform that action at this time.
0 commit comments