| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 24 | 1 | public function isValid($email, EmailLexer $emailLexer) | |
| 25 |     { | ||
| 26 | 1 | $checker = new Spoofchecker(); | |
| 27 | 1 | $checker->setChecks(Spoofchecker::SINGLE_SCRIPT); | |
| 28 | |||
| 29 | 1 |         if ($checker->isSuspicious($email)) { | |
| 30 | 1 | $this->error = new SpoofEmail(); | |
| 31 | 1 | } | |
| 32 | |||
| 33 | 1 | return $this->error === null; | |
| 34 | } | ||
| 35 | |||
| 46 |