Code Duplication    Length = 4-4 lines in 2 locations

src/Engines/QueryBuilderEngine.php 2 locations

@@ 725-728 (lines=4) @@
722
    protected function regexColumnSearch($column, $keyword)
723
    {
724
        switch ($this->connection->getDriverName()) {
725
            case 'oracle':
726
                $sql = !$this->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )';
727
                $this->query->whereRaw($sql, [$keyword]);
728
                break;
729
730
            case 'pgsql':
731
                $sql = !$this->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
@@ 730-733 (lines=4) @@
727
                $this->query->whereRaw($sql, [$keyword]);
728
                break;
729
730
            case 'pgsql':
731
                $sql = !$this->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? ';
732
                $this->query->whereRaw($sql, [$keyword]);
733
                break;
734
735
            default:
736
                $sql = !$this->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?';