@@ -40,9 +40,9 @@ |
||
40 | 40 | return; |
41 | 41 | } |
42 | 42 | |
43 | - if (! isset($value['start'])) { |
|
43 | + if (!isset($value['start'])) { |
|
44 | 44 | return $model->where($this->getColumnName(), '<', $value['end']); |
45 | - } elseif (! isset($value['end'])) { |
|
45 | + } elseif (!isset($value['end'])) { |
|
46 | 46 | return $model->where($this->getColumnName(), '>', $value['start']); |
47 | 47 | } else { |
48 | 48 | return $model->whereBetween($this->getColumnName(), array_values($value)); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function headings(): array |
33 | 33 | { |
34 | - if (! empty($this->columns)) { |
|
34 | + if (!empty($this->columns)) { |
|
35 | 35 | return array_values($this->columns); |
36 | 36 | } |
37 | 37 | |
@@ -43,12 +43,12 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function query() |
45 | 45 | { |
46 | - if (! empty($this->columns)) { |
|
46 | + if (!empty($this->columns)) { |
|
47 | 47 | $columns = array_keys($this->columns); |
48 | 48 | |
49 | 49 | $eagerLoads = array_keys($this->getQuery()->getEagerLoads()); |
50 | 50 | |
51 | - $columns = collect($columns)->reject(function ($column) use ($eagerLoads) { |
|
51 | + $columns = collect($columns)->reject(function($column) use ($eagerLoads) { |
|
52 | 52 | return Str::contains($column, '.') || in_array($column, $eagerLoads); |
53 | 53 | }); |
54 | 54 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | protected function getElementClassName() |
33 | 33 | { |
34 | - if (! $this->btnClassName) { |
|
34 | + if (!$this->btnClassName) { |
|
35 | 35 | $this->btnClassName = uniqid().'-filter-btn'; |
36 | 36 | } |
37 | 37 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function allowed() |
38 | 38 | { |
39 | - return ! $this->disabled; |
|
39 | + return !$this->disabled; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -40,13 +40,13 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function render() |
42 | 42 | { |
43 | - if (! $this->grid->showColumnSelector()) { |
|
43 | + if (!$this->grid->showColumnSelector()) { |
|
44 | 44 | return ''; |
45 | 45 | } |
46 | 46 | |
47 | 47 | $show = $this->grid->visibleColumnNames(); |
48 | 48 | |
49 | - $lists = $this->getGridColumns()->map(function ($label, $key) use ($show) { |
|
49 | + $lists = $this->getGridColumns()->map(function($label, $key) use ($show) { |
|
50 | 50 | if (empty($show)) { |
51 | 51 | $checked = 'checked'; |
52 | 52 | } else { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | protected function getGridColumns() |
100 | 100 | { |
101 | - return $this->grid->columns()->map(function (Grid\Column $column) { |
|
101 | + return $this->grid->columns()->map(function(Grid\Column $column) { |
|
102 | 102 | $name = $column->getName(); |
103 | 103 | |
104 | 104 | if ($this->isColumnIgnored($name)) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function total($column, $display = null, $operation = 'sum') |
58 | 58 | { |
59 | - if (! is_callable($display) && ! is_null($display)) { |
|
59 | + if (!is_callable($display) && !is_null($display)) { |
|
60 | 60 | return $display; |
61 | 61 | } |
62 | 62 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function render() |
98 | 98 | { |
99 | - $columns = $this->getVisibleColumns()->map(function (Column $column) { |
|
99 | + $columns = $this->getVisibleColumns()->map(function(Column $column) { |
|
100 | 100 | $name = $column->getName(); |
101 | 101 | |
102 | 102 | $total = ''; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function queryBuilder() |
33 | 33 | { |
34 | - if (! $this->queryBuilder) { |
|
34 | + if (!$this->queryBuilder) { |
|
35 | 35 | $this->queryBuilder = $this->grid->model()->getQueryBuilder(); |
36 | 36 | } |
37 | 37 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function render() |
56 | 56 | { |
57 | - if (! $this->grid->showExportBtn()) { |
|
57 | + if (!$this->grid->showExportBtn()) { |
|
58 | 58 | return ''; |
59 | 59 | } |
60 | 60 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function render() |
30 | 30 | { |
31 | - if (! $this->grid->showCreateBtn()) { |
|
31 | + if (!$this->grid->showCreateBtn()) { |
|
32 | 32 | return ''; |
33 | 33 | } |
34 | 34 |