@@ -44,9 +44,9 @@ |
||
44 | 44 | foreach ($engines as $engine => $class) { |
45 | 45 | $engine = camel_case($engine); |
46 | 46 | |
47 | - if (! method_exists(DataTables::class, $engine) && ! DataTables::hasMacro($engine)) { |
|
47 | + if (!method_exists(DataTables::class, $engine) && !DataTables::hasMacro($engine)) { |
|
48 | 48 | DataTables::macro($engine, function () use ($class) { |
49 | - if (! call_user_func_array([$class, 'canCreate'], func_get_args())) { |
|
49 | + if (!call_user_func_array([$class, 'canCreate'], func_get_args())) { |
|
50 | 50 | throw new \InvalidArgumentException(); |
51 | 51 | } |
52 | 52 |
@@ -223,8 +223,8 @@ discard block |
||
223 | 223 | foreach ($this->request->searchableColumnIndex() as $index) { |
224 | 224 | $column = $this->getColumnName($index); |
225 | 225 | $value = Arr::get($data, $column); |
226 | - if (! $value || is_array($value)) { |
|
227 | - if (! is_numeric($value)) { |
|
226 | + if (!$value || is_array($value)) { |
|
227 | + if (!is_numeric($value)) { |
|
228 | 228 | continue; |
229 | 229 | } else { |
230 | 230 | $value = (string) $value; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | protected function defaultOrdering() |
248 | 248 | { |
249 | 249 | $criteria = $this->request->orderableColumns(); |
250 | - if (! empty($criteria)) { |
|
250 | + if (!empty($criteria)) { |
|
251 | 251 | $sorter = $this->getSorter($criteria); |
252 | 252 | |
253 | 253 | $this->collection = $this->collection |