@@ -202,8 +202,8 @@ discard block |
||
202 | 202 | $formatter = app($formatter); |
203 | 203 | } |
204 | 204 | |
205 | - if (! $formatter instanceof Formatter) { |
|
206 | - throw new \Exception('$formatter must be an instance of '. Formatter::class); |
|
205 | + if (!$formatter instanceof Formatter) { |
|
206 | + throw new \Exception('$formatter must be an instance of ' . Formatter::class); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | foreach ((array) $columns as $column) { |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | */ |
554 | 554 | public function pushToBlacklist($column) |
555 | 555 | { |
556 | - if (! $this->isBlacklisted($column)) { |
|
556 | + if (!$this->isBlacklisted($column)) { |
|
557 | 557 | $this->columnDef['blacklist'][] = $column; |
558 | 558 | } |
559 | 559 | |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | */ |
748 | 748 | protected function paginate() |
749 | 749 | { |
750 | - if ($this->request->isPaginationable() && ! $this->skipPaging) { |
|
750 | + if ($this->request->isPaginationable() && !$this->skipPaging) { |
|
751 | 751 | $this->paging(); |
752 | 752 | } |
753 | 753 | } |
@@ -858,7 +858,7 @@ discard block |
||
858 | 858 | $error = $this->config->get('datatables.error'); |
859 | 859 | $debug = $this->config->get('app.debug'); |
860 | 860 | |
861 | - if ($error === 'throw' || (! $error && ! $debug)) { |
|
861 | + if ($error === 'throw' || (!$error && !$debug)) { |
|
862 | 862 | throw new Exception($exception->getMessage(), $code = 0, $exception); |
863 | 863 | } |
864 | 864 | |
@@ -869,7 +869,7 @@ discard block |
||
869 | 869 | 'recordsTotal' => $this->totalRecords, |
870 | 870 | 'recordsFiltered' => 0, |
871 | 871 | 'data' => [], |
872 | - 'error' => $error ? __($error) : "Exception Message:\n\n".$exception->getMessage(), |
|
872 | + 'error' => $error ? __($error) : "Exception Message:\n\n" . $exception->getMessage(), |
|
873 | 873 | ]); |
874 | 874 | } |
875 | 875 | |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | protected function setupKeyword($value) |
908 | 908 | { |
909 | 909 | if ($this->config->isSmartSearch()) { |
910 | - $keyword = '%'.$value.'%'; |
|
910 | + $keyword = '%' . $value . '%'; |
|
911 | 911 | if ($this->config->isWildcard()) { |
912 | 912 | $keyword = Helper::wildcardLikeString($value); |
913 | 913 | } |