@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | protected function prepareQuery() |
| 100 | 100 | { |
| 101 | - if (! $this->prepared) { |
|
| 101 | + if (!$this->prepared) { |
|
| 102 | 102 | $this->totalRecords = $this->totalCount(); |
| 103 | 103 | |
| 104 | 104 | if ($this->totalRecords) { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | { |
| 146 | 146 | $builder = clone $this->query; |
| 147 | 147 | |
| 148 | - if (! $this->isComplexQuery($builder)) { |
|
| 148 | + if (!$this->isComplexQuery($builder)) { |
|
| 149 | 149 | $row_count = $this->wrap('row_count'); |
| 150 | 150 | $builder->select($this->connection->raw("'1' as {$row_count}")); |
| 151 | 151 | $builder->setBindings([], 'select'); |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $columns = $this->request->columns(); |
| 219 | 219 | |
| 220 | 220 | foreach ($columns as $index => $column) { |
| 221 | - if (! $this->request->isColumnSearchable($index)) { |
|
| 221 | + if (!$this->request->isColumnSearchable($index)) { |
|
| 222 | 222 | continue; |
| 223 | 223 | } |
| 224 | 224 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | */ |
| 298 | 298 | protected function getBaseQueryBuilder($instance = null) |
| 299 | 299 | { |
| 300 | - if (! $instance) { |
|
| 300 | + if (!$instance) { |
|
| 301 | 301 | $instance = $this->query; |
| 302 | 302 | } |
| 303 | 303 | |
@@ -346,18 +346,18 @@ discard block |
||
| 346 | 346 | { |
| 347 | 347 | switch ($this->connection->getDriverName()) { |
| 348 | 348 | case 'oracle': |
| 349 | - $sql = ! $this->config->isCaseInsensitive() |
|
| 349 | + $sql = !$this->config->isCaseInsensitive() |
|
| 350 | 350 | ? 'REGEXP_LIKE( ' . $column . ' , ? )' |
| 351 | 351 | : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
| 352 | 352 | break; |
| 353 | 353 | |
| 354 | 354 | case 'pgsql': |
| 355 | 355 | $column = $this->castColumn($column); |
| 356 | - $sql = ! $this->config->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? '; |
|
| 356 | + $sql = !$this->config->isCaseInsensitive() ? $column . ' ~ ?' : $column . ' ~* ? '; |
|
| 357 | 357 | break; |
| 358 | 358 | |
| 359 | 359 | default: |
| 360 | - $sql = ! $this->config->isCaseInsensitive() |
|
| 360 | + $sql = !$this->config->isCaseInsensitive() |
|
| 361 | 361 | ? $column . ' REGEXP ?' |
| 362 | 362 | : 'LOWER(' . $column . ') REGEXP ?'; |
| 363 | 363 | $keyword = Str::lower($keyword); |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | { |
| 418 | 418 | if (strpos($column, '.') === false) { |
| 419 | 419 | $q = $this->getBaseQueryBuilder($query); |
| 420 | - if (! $q->from instanceof Expression) { |
|
| 420 | + if (!$q->from instanceof Expression) { |
|
| 421 | 421 | $column = $q->from . '.' . $column; |
| 422 | 422 | } |
| 423 | 423 | } |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | return $orderable; |
| 575 | 575 | }) |
| 576 | 576 | ->reject(function ($orderable) { |
| 577 | - return $this->isBlacklisted($orderable['name']) && ! $this->hasOrderColumn($orderable['name']); |
|
| 577 | + return $this->isBlacklisted($orderable['name']) && !$this->hasOrderColumn($orderable['name']); |
|
| 578 | 578 | }) |
| 579 | 579 | ->each(function ($orderable) { |
| 580 | 580 | $column = $this->resolveRelationColumn($orderable['name']); |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | return $this->getColumnName($index); |
| 643 | 643 | }) |
| 644 | 644 | ->reject(function ($column) { |
| 645 | - return $this->isBlacklisted($column) && ! $this->hasFilterColumn($column); |
|
| 645 | + return $this->isBlacklisted($column) && !$this->hasFilterColumn($column); |
|
| 646 | 646 | }) |
| 647 | 647 | ->each(function ($column) use ($keyword, $query) { |
| 648 | 648 | if ($this->hasFilterColumn($column)) { |