@@ -204,8 +204,8 @@ discard block |
||
204 | 204 | $formatter = app($formatter); |
205 | 205 | } |
206 | 206 | |
207 | - if (! $formatter instanceof Formatter) { |
|
208 | - throw new \Exception('$formatter must be an instance of '. Formatter::class); |
|
207 | + if (!$formatter instanceof Formatter) { |
|
208 | + throw new \Exception('$formatter must be an instance of ' . Formatter::class); |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | foreach ((array) $columns as $column) { |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | */ |
569 | 569 | public function pushToBlacklist($column) |
570 | 570 | { |
571 | - if (! $this->isBlacklisted($column)) { |
|
571 | + if (!$this->isBlacklisted($column)) { |
|
572 | 572 | $this->columnDef['blacklist'][] = $column; |
573 | 573 | } |
574 | 574 | |
@@ -762,7 +762,7 @@ discard block |
||
762 | 762 | */ |
763 | 763 | protected function paginate() |
764 | 764 | { |
765 | - if ($this->request->isPaginationable() && ! $this->skipPaging) { |
|
765 | + if ($this->request->isPaginationable() && !$this->skipPaging) { |
|
766 | 766 | $this->paging(); |
767 | 767 | } |
768 | 768 | } |
@@ -874,7 +874,7 @@ discard block |
||
874 | 874 | $error = $this->config->get('datatables.error'); |
875 | 875 | $debug = $this->config->get('app.debug'); |
876 | 876 | |
877 | - if ($error === 'throw' || (! $error && ! $debug)) { |
|
877 | + if ($error === 'throw' || (!$error && !$debug)) { |
|
878 | 878 | throw $exception; |
879 | 879 | } |
880 | 880 | |
@@ -885,7 +885,7 @@ discard block |
||
885 | 885 | 'recordsTotal' => $this->totalRecords, |
886 | 886 | 'recordsFiltered' => 0, |
887 | 887 | 'data' => [], |
888 | - 'error' => $error ? __($error) : "Exception Message:\n\n".$exception->getMessage(), |
|
888 | + 'error' => $error ? __($error) : "Exception Message:\n\n" . $exception->getMessage(), |
|
889 | 889 | ]); |
890 | 890 | } |
891 | 891 | |
@@ -923,7 +923,7 @@ discard block |
||
923 | 923 | protected function setupKeyword($value) |
924 | 924 | { |
925 | 925 | if ($this->config->isSmartSearch()) { |
926 | - $keyword = '%'.$value.'%'; |
|
926 | + $keyword = '%' . $value . '%'; |
|
927 | 927 | if ($this->config->isWildcard()) { |
928 | 928 | $keyword = Helper::wildcardLikeString($value); |
929 | 929 | } |