Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function isValid($email, EmailLexer $emailLexer) |
|
18 | { |
||
19 | 1 | $checker = new Spoofchecker(); |
|
20 | 1 | $checker->setChecks(Spoofchecker::SINGLE_SCRIPT); |
|
21 | |||
22 | 1 | if ($checker->isSuspicious($email)) { |
|
23 | 1 | $this->error = new SpoofEmail(); |
|
24 | 1 | } |
|
25 | |||
26 | 1 | return $this->error === null; |
|
27 | } |
||
28 | |||
39 |