Code Duplication    Length = 11-13 lines in 2 locations

EmailValidator/Parser/LocalPart.php 2 locations

@@ 112-122 (lines=11) @@
109
            return $this->lexer->token['type'] === EmailLexer::S_DOT && null === $this->lexer->getPrevious()['type'];
110
    }
111
112
    protected function parseDoubleQuote() : Result
113
    {
114
        $dquoteParser = new DoubleQuote($this->lexer);
115
        $parseAgain = $dquoteParser->parse("remove useless arg");
116
        $warns = $dquoteParser->getWarnings();
117
        foreach ($warns as $code => $dWarning) {
118
            $this->warnings[$code] = $dWarning;
119
        }
120
121
        return $parseAgain;
122
    }
123
124
    protected function parseComments()
125
    {
@@ 124-136 (lines=13) @@
121
        return $parseAgain;
122
    }
123
124
    protected function parseComments()
125
    {
126
        $commentParser = new Comment($this->lexer);
127
        $result = $commentParser->parse('remove');
128
        if($result->isInvalid()) {
129
            return $result;
130
        }
131
        $warns = $commentParser->getWarnings();
132
        foreach ($warns as $code => $dWarning) {
133
            $this->warnings[$code] = $dWarning;
134
        }
135
        return $result;
136
    }
137
}