Code Duplication    Length = 5-5 lines in 2 locations

src/NodeParser/Query/GroupNodeParser.php 2 locations

@@ 43-47 (lines=5) @@
40
            $queries[] = $this->conditionParser->parse($tokenStream);
41
42
            if ($tokenStream->nextIf(Token::T_AMPERSAND)) {
43
                if ($operator === null) {
44
                    $operator = Token::T_AMPERSAND;
45
                } elseif ($operator !== Token::T_AMPERSAND) {
46
                    throw new SyntaxErrorException('Cannot mix "&" and "|" within a group');
47
                }
48
            } elseif ($tokenStream->nextIf(Token::T_VERTICAL_BAR)) {
49
                if ($operator === null) {
50
                    $operator = Token::T_VERTICAL_BAR;
@@ 49-53 (lines=5) @@
46
                    throw new SyntaxErrorException('Cannot mix "&" and "|" within a group');
47
                }
48
            } elseif ($tokenStream->nextIf(Token::T_VERTICAL_BAR)) {
49
                if ($operator === null) {
50
                    $operator = Token::T_VERTICAL_BAR;
51
                } elseif ($operator !== Token::T_VERTICAL_BAR) {
52
                    throw new SyntaxErrorException('Cannot mix "&" and "|" within a group');
53
                }
54
            } else {
55
                break;
56
            }