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