@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function condition() |
59 | 59 | { |
60 | - return $this->queries->map(function ($query) { |
|
60 | + return $this->queries->map(function($query) { |
|
61 | 61 | return [$query['method'] => $query['arguments']]; |
62 | 62 | })->toArray(); |
63 | 63 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function asDefault() |
85 | 85 | { |
86 | - if (! request()->input('_scope_')) { |
|
86 | + if (!request()->input('_scope_')) { |
|
87 | 87 | request()->merge(['_scope_' => $this->key]); |
88 | 88 | } |
89 | 89 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $this->tools->disableFilterButton($disable); |
38 | 38 | |
39 | - return $this->option('show_filter', ! $disable); |
|
39 | + return $this->option('show_filter', !$disable); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function renderFilter() |
84 | 84 | { |
85 | - if (! $this->option('show_filter')) { |
|
85 | + if (!$this->option('show_filter')) { |
|
86 | 86 | return ''; |
87 | 87 | } |
88 | 88 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function footer(Closure $closure = null) |
23 | 23 | { |
24 | - if (! $closure) { |
|
24 | + if (!$closure) { |
|
25 | 25 | return $this->footer; |
26 | 26 | } |
27 | 27 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function renderFooter() |
39 | 39 | { |
40 | - if (! $this->footer) { |
|
40 | + if (!$this->footer) { |
|
41 | 41 | return ''; |
42 | 42 | } |
43 | 43 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function header(Closure $closure = null) |
23 | 23 | { |
24 | - if (! $closure) { |
|
24 | + if (!$closure) { |
|
25 | 25 | return $this->header; |
26 | 26 | } |
27 | 27 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function renderHeader() |
37 | 37 | { |
38 | - if (! $this->header) { |
|
38 | + if (!$this->header) { |
|
39 | 39 | return ''; |
40 | 40 | } |
41 | 41 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function disableTools(bool $disable = true) |
37 | 37 | { |
38 | - return $this->option('show_tools', ! $disable); |
|
38 | + return $this->option('show_tools', !$disable); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | call_user_func($closure, $this->selector); |
28 | 28 | |
29 | - $this->header(function () { |
|
29 | + $this->header(function() { |
|
30 | 30 | return $this->renderSelector(); |
31 | 31 | }); |
32 | 32 | |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | |
47 | 47 | $active = Selector::parseSelected(); |
48 | 48 | |
49 | - $this->selector->getSelectors()->each(function ($selector, $column) use ($active) { |
|
50 | - if (! array_key_exists($column, $active)) { |
|
49 | + $this->selector->getSelectors()->each(function($selector, $column) use ($active) { |
|
50 | + if (!array_key_exists($column, $active)) { |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $this->search = $search; |
42 | 42 | } |
43 | 43 | |
44 | - return tap(new Tools\QuickSearch(), function ($search) { |
|
44 | + return tap(new Tools\QuickSearch(), function($search) { |
|
45 | 45 | $this->tools->append($search); |
46 | 46 | }); |
47 | 47 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function applyQuickSearch() |
55 | 55 | { |
56 | - if (! $query = request()->get(static::$searchKey)) { |
|
56 | + if (!$query = request()->get(static::$searchKey)) { |
|
57 | 57 | return; |
58 | 58 | } |
59 | 59 | |
@@ -125,14 +125,14 @@ discard block |
||
125 | 125 | */ |
126 | 126 | protected function parseQueryBindings(array $queries) |
127 | 127 | { |
128 | - $columnMap = $this->columns->mapWithKeys(function (Column $column) { |
|
128 | + $columnMap = $this->columns->mapWithKeys(function(Column $column) { |
|
129 | 129 | $label = $column->getLabel(); |
130 | 130 | $name = $column->getName(); |
131 | 131 | |
132 | 132 | return [$label => $name, $name => $name]; |
133 | 133 | }); |
134 | 134 | |
135 | - return collect($queries)->map(function ($query) use ($columnMap) { |
|
135 | + return collect($queries)->map(function($query) use ($columnMap) { |
|
136 | 136 | $segments = explode(':', $query, 2); |
137 | 137 | |
138 | 138 | if (count($segments) != 2) { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $this->totalRowColumns[$column] = $callback; |
29 | 29 | |
30 | - if (! isset($this->totalRowOperations[$column])) { |
|
30 | + if (!isset($this->totalRowOperations[$column])) { |
|
31 | 31 | $this->addTotalOperation($column, 'sum'); |
32 | 32 | } |
33 | 33 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function addTotalOperation($column, $operation, $callback = null) |
44 | 44 | { |
45 | - if (! is_null($callback)) { |
|
45 | + if (!is_null($callback)) { |
|
46 | 46 | $this->totalRowColumns[$column] = $callback; |
47 | 47 | } |
48 | 48 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function hasQuickCreate() |
36 | 36 | { |
37 | - return ! is_null($this->quickCreate); |
|
37 | + return !is_null($this->quickCreate); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |