Code Duplication    Length = 3-3 lines in 2 locations

EmailValidator/Parser/DoubleQuote.php 1 location

@@ 49-51 (lines=3) @@
46
47
            $this->lexer->moveNext();
48
49
            if (!$this->escaped() && isset($invalid[$this->lexer->token['type']])) {
50
                return new InvalidEmail(new ExpectingATEXT("Expecting ATEXT between DQUOTE"), $this->lexer->token['value']);
51
            }
52
        }
53
54
        $prev = $this->lexer->getPrevious();

EmailValidator/Parser/LocalPart.php 1 location

@@ 75-77 (lines=3) @@
72
                return $resultEscaping;
73
            }
74
75
            if (isset($this->invalidTokens[$this->lexer->token['type']])) {
76
                return new InvalidEmail(new ReasonExpectingATEXT('Invalid token found'), $this->lexer->token['value']);
77
            }
78
79
            $resultFWS = $this->parseLocalFWS();
80
            if($resultFWS->isInvalid()) {