Code Duplication    Length = 3-3 lines in 2 locations

EmailValidator/Validation/DNSCheckValidation.php 1 location

@@ 28-30 (lines=3) @@
25
        $host = $email;
26
27
        // Arguable pattern to extract the domain. Not aiming to validate the domain nor the email
28
        if (false !== $lastAtPos = strrpos($email, '@')) {
29
            $host = substr($email, $lastAtPos + 1);
30
        }
31
32
        return $this->checkDNS($host);
33
    }

EmailValidator/Validation/NonLocalValidation.php 1 location

@@ 30-32 (lines=3) @@
27
        $host = $email;
28
29
        // Arguable pattern to extract the domain. Not aiming to validate the domain nor the email
30
        if (false !== $lastAtPos = strrpos($email, '@')) {
31
            $host = substr($email, $lastAtPos + 1);
32
        }
33
34
        if (strpos($host, '.') === false) {
35
            $this->error = new LocalEmail();