Code Duplication    Length = 9-10 lines in 2 locations

src/SQLParser/PHPSQLCreator.php 2 locations

@@ 475-484 (lines=10) @@
472
        return $sql;
473
    }
474
475
    protected function processSelectBracketExpression($parsed)
476
    {
477
        if ($parsed['expr_type'] !== ExpressionType::BRACKET_EXPRESSION) {
478
            return '';
479
        }
480
        $sql = $this->processSubTree($parsed, ' ');
481
        $sql = '('.$sql.')';
482
483
        return $sql;
484
    }
485
486
    protected function processSubTree($parsed, $delim = ' ')
487
    {
@@ 693-701 (lines=9) @@
690
        return $parsed['base_expr'];
691
    }
692
693
    protected function processInList($parsed)
694
    {
695
        if ($parsed['expr_type'] !== ExpressionType::IN_LIST) {
696
            return '';
697
        }
698
        $sql = $this->processSubTree($parsed, ',');
699
700
        return '('.$sql.')';
701
    }
702
} // END CLASS
703
704