Code Duplication    Length = 8-8 lines in 2 locations

EmailValidator/Parser/FoldingWhiteSpace.php 1 location

@@ 83-90 (lines=8) @@
80
    /**
81
     * @return bool
82
     */
83
    protected function escaped()
84
    {
85
        $previous = $this->lexer->getPrevious();
86
87
        return $previous && $previous['type'] === EmailLexer::S_BACKSLASH
88
            &&
89
            $this->lexer->token['type'] !== EmailLexer::GENERIC;
90
    }
91
92
}

EmailValidator/Parser/Parser.php 1 location

@@ 148-155 (lines=8) @@
145
    /**
146
     * @return bool
147
     */
148
    protected function escaped()
149
    {
150
        $previous = $this->lexer->getPrevious();
151
152
        return $previous && $previous['type'] === EmailLexer::S_BACKSLASH
153
            &&
154
            $this->lexer->token['type'] !== EmailLexer::GENERIC;
155
    }
156
157
    /**
158
     * @return bool