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

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