Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function isValid(string $email, EmailLexer $emailLexer) : bool |
||
29 | { |
||
30 | $checker = new Spoofchecker(); |
||
31 | $checker->setChecks(Spoofchecker::SINGLE_SCRIPT); |
||
32 | |||
33 | if ($checker->isSuspicious($email)) { |
||
34 | $this->error = new SpoofEmail(); |
||
35 | } |
||
36 | |||
37 | return $this->error === null; |
||
38 | } |
||
39 | |||
53 |