@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | */ |
| 475 | 475 | public function pushToBlacklist($column) |
| 476 | 476 | { |
| 477 | - if (! $this->isBlacklisted($column)) { |
|
| 477 | + if (!$this->isBlacklisted($column)) { |
|
| 478 | 478 | $this->columnDef['blacklist'][] = $column; |
| 479 | 479 | } |
| 480 | 480 | |
@@ -659,7 +659,7 @@ discard block |
||
| 659 | 659 | */ |
| 660 | 660 | protected function paginate() |
| 661 | 661 | { |
| 662 | - if ($this->request->isPaginationable() && ! $this->skipPaging) { |
|
| 662 | + if ($this->request->isPaginationable() && !$this->skipPaging) { |
|
| 663 | 663 | $this->paging(); |
| 664 | 664 | } |
| 665 | 665 | } |
@@ -766,7 +766,7 @@ discard block |
||
| 766 | 766 | $error = $this->config->get('datatables.error'); |
| 767 | 767 | $debug = $this->config->get('app.debug'); |
| 768 | 768 | |
| 769 | - if ($error === 'throw' || (! $error && ! $debug)) { |
|
| 769 | + if ($error === 'throw' || (!$error && !$debug)) { |
|
| 770 | 770 | throw new Exception($exception->getMessage(), $code = 0, $exception); |
| 771 | 771 | } |
| 772 | 772 | |
@@ -777,7 +777,7 @@ discard block |
||
| 777 | 777 | 'recordsTotal' => $this->totalRecords, |
| 778 | 778 | 'recordsFiltered' => 0, |
| 779 | 779 | 'data' => [], |
| 780 | - 'error' => $error ? __($error) : "Exception Message:\n\n".$exception->getMessage(), |
|
| 780 | + 'error' => $error ? __($error) : "Exception Message:\n\n" . $exception->getMessage(), |
|
| 781 | 781 | ]); |
| 782 | 782 | } |
| 783 | 783 | |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | protected function setupKeyword($value) |
| 816 | 816 | { |
| 817 | 817 | if ($this->config->isSmartSearch()) { |
| 818 | - $keyword = '%'.$value.'%'; |
|
| 818 | + $keyword = '%' . $value . '%'; |
|
| 819 | 819 | if ($this->config->isWildcard()) { |
| 820 | 820 | $keyword = Helper::wildcardLikeString($value); |
| 821 | 821 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | protected function addIndexColumn($data) |
| 136 | 136 | { |
| 137 | - $indexColumn = config('datatables.index_column', 'DT_RowIndex'); |
|
| 137 | + $indexColumn = config('datatables.index_column', 'DT_RowIndex'); |
|
| 138 | 138 | |
| 139 | 139 | if ($this->includeIndex) { |
| 140 | 140 | $data[$indexColumn] = ++$this->start; |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | protected function shouldEscapeColumn($key) |
| 263 | 263 | { |
| 264 | 264 | if ($this->escapeColumns === '*') { |
| 265 | - return ! in_array($key, $this->rawColumns); // escape if is not a raw column |
|
| 265 | + return !in_array($key, $this->rawColumns); // escape if is not a raw column |
|
| 266 | 266 | } elseif (is_array($this->escapeColumns)) { |
| 267 | 267 | return in_array($key, array_diff($this->escapeColumns, $this->rawColumns)); |
| 268 | 268 | } else { |