@@ -17,6 +17,9 @@ |
||
17 | 17 | |
18 | 18 | protected $guarded = []; |
19 | 19 | |
20 | + /** |
|
21 | + * @return Subscriber |
|
22 | + */ |
|
20 | 23 | public static function findForEmail(string $email): ?Subscriber |
21 | 24 | { |
22 | 25 | return static::where('email', $email)->first(); |
@@ -31,6 +31,9 @@ |
||
31 | 31 | $campaign->save(); |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param Campaign $campaign |
|
36 | + */ |
|
34 | 37 | protected function ensureEmailHtmlHasSingleRootElement($campaign) |
35 | 38 | { |
36 | 39 | if (! Str::startsWith(trim($campaign->email_html), '<html')) { |