Code Duplication    Length = 3-4 lines in 2 locations

src/Parser.php 1 location

@@ 454-457 (lines=4) @@
451
                continue;
452
            }
453
454
            if (($token->value === 'UNION') || ($token->value === 'UNION ALL') || ($token->value === 'UNION DISTINCT')) {
455
                $unionType = $token->value;
456
                continue;
457
            }
458
459
            // Checking if it is a known statement that can be parsed.
460
            if (empty(static::$STATEMENT_PARSERS[$token->value])) {

src/Statement.php 1 location

@@ 249-251 (lines=3) @@
246
247
            // Unions are parsed by the parser because they represent more than
248
            // one statement.
249
            if (($token->value === 'UNION') || ($token->value === 'UNION ALL') || ($token->value === 'UNION DISTINCT')) {
250
                break;
251
            }
252
253
            $lastIdx = $list->idx;
254