Code Duplication    Length = 12-12 lines in 2 locations

EmailValidator/Parser/FoldingWhiteSpace.php 1 location

@@ 67-78 (lines=12) @@
64
    /**
65
     * @return bool
66
     */
67
    protected function isFWS()
68
    {
69
        if ($this->escaped()) {
70
            return false;
71
        }
72
73
        return $this->lexer->token['type'] === EmailLexer::S_SP ||
74
            $this->lexer->token['type'] === EmailLexer::S_HTAB ||
75
            $this->lexer->token['type'] === EmailLexer::S_CR ||
76
            $this->lexer->token['type'] === EmailLexer::S_LF ||
77
            $this->lexer->token['type'] === EmailLexer::CRLF;
78
    }
79
80
    /**
81
     * @return bool

EmailValidator/Parser/Parser.php 1 location

@@ 131-142 (lines=12) @@
128
    /**
129
     * @return bool
130
     */
131
    protected function isFWS()
132
    {
133
        if ($this->escaped()) {
134
            return false;
135
        }
136
137
        return $this->lexer->token['type'] === EmailLexer::S_SP ||
138
            $this->lexer->token['type'] === EmailLexer::S_HTAB ||
139
            $this->lexer->token['type'] === EmailLexer::S_CR ||
140
            $this->lexer->token['type'] === EmailLexer::S_LF ||
141
            $this->lexer->token['type'] === EmailLexer::CRLF;
142
    }
143
144
    /**
145
     * @return bool