@@ -98,13 +98,13 @@ discard block |
||
98 | 98 | $myQuery = clone $this->query; |
99 | 99 | // if its a normal query ( no union, having and distinct word ) |
100 | 100 | // replace the select with static text to improve performance |
101 | - if (! Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) { |
|
101 | + if (!Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) { |
|
102 | 102 | $row_count = $this->wrap('row_count'); |
103 | 103 | $myQuery->select($this->connection->raw("'1' as {$row_count}")); |
104 | 104 | } |
105 | 105 | |
106 | 106 | // check for select soft deleted records |
107 | - if (! $this->withTrashed && $this->modelUseSoftDeletes()) { |
|
107 | + if (!$this->withTrashed && $this->modelUseSoftDeletes()) { |
|
108 | 108 | $myQuery->whereNull($myQuery->getModel()->getQualifiedDeletedAtColumn()); |
109 | 109 | } |
110 | 110 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $columnDef = $this->columnDef['filter'][$columnName]; |
161 | 161 | // check if global search should be applied for the specific column |
162 | 162 | $applyGlobalSearch = count($columnDef['parameters']) == 0 || end($columnDef['parameters']) !== false; |
163 | - if (! $applyGlobalSearch) { |
|
163 | + if (!$applyGlobalSearch) { |
|
164 | 164 | continue; |
165 | 165 | } |
166 | 166 | |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | $q = $query; |
407 | 407 | } |
408 | 408 | |
409 | - if (! $q->from instanceof Expression) { |
|
409 | + if (!$q->from instanceof Expression) { |
|
410 | 410 | // Get table from query and add it. |
411 | 411 | $column = $q->from . '.' . $column; |
412 | 412 | } |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | $columns = (array) $this->request->input('columns'); |
466 | 466 | |
467 | 467 | foreach ($columns as $index => $column) { |
468 | - if (! $this->request->isColumnSearchable($index)) { |
|
468 | + if (!$this->request->isColumnSearchable($index)) { |
|
469 | 469 | continue; |
470 | 470 | } |
471 | 471 | |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | $joins[] = $join->table; |
582 | 582 | } |
583 | 583 | |
584 | - if (! in_array($table, $joins)) { |
|
584 | + if (!in_array($table, $joins)) { |
|
585 | 585 | $this->getQueryBuilder()->join($table, $foreign, '=', $other); |
586 | 586 | } |
587 | 587 | } |
@@ -612,10 +612,10 @@ discard block |
||
612 | 612 | protected function regexColumnSearch($column, $keyword) |
613 | 613 | { |
614 | 614 | if ($this->isOracleSql()) { |
615 | - $sql = ! $this->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
|
615 | + $sql = !$this->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
|
616 | 616 | $this->query->whereRaw($sql, [$keyword]); |
617 | 617 | } else { |
618 | - $sql = ! $this->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?'; |
|
618 | + $sql = !$this->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?'; |
|
619 | 619 | $this->query->whereRaw($sql, [Str::lower($keyword)]); |
620 | 620 | } |
621 | 621 | } |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | |
661 | 661 | if (in_array($relation, $eagerLoads)) { |
662 | 662 | $relationship = $this->query->getRelation($relation); |
663 | - if (! ($relationship instanceof MorphToMany)) { |
|
663 | + if (!($relationship instanceof MorphToMany)) { |
|
664 | 664 | $column = $this->joinEagerLoadedColumn($relation, $relationColumn); |
665 | 665 | } else { |
666 | 666 | $valid = 0; |