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

@@ 166-173 (lines=8) @@
163
    /**
164
     * @return bool
165
     */
166
    protected function escaped()
167
    {
168
        $previous = $this->lexer->getPrevious();
169
170
        return $previous && $previous['type'] === EmailLexer::S_BACKSLASH
171
            &&
172
            $this->lexer->token['type'] !== EmailLexer::GENERIC;
173
    }
174
175
    /**
176
     * @return bool