@@ -88,7 +88,7 @@ |
||
88 | 88 | */ |
89 | 89 | public function batchActions(Closure $closure) |
90 | 90 | { |
91 | - $this->tools(function (Grid\Tools $tools) use ($closure) { |
|
91 | + $this->tools(function(Grid\Tools $tools) use ($closure) { |
|
92 | 92 | $tools->batch($closure); |
93 | 93 | }); |
94 | 94 |
@@ -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 | } |
@@ -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) { |
@@ -57,7 +57,7 @@ |
||
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 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function removeFilterByID($id) |
75 | 75 | { |
76 | - $this->filters = $this->filters->reject(function (AbstractFilter $filter) use ($id) { |
|
76 | + $this->filters = $this->filters->reject(function(AbstractFilter $filter) use ($id) { |
|
77 | 77 | return $filter->getId() == $id; |
78 | 78 | }); |
79 | 79 | } |
@@ -453,7 +453,7 @@ |
||
453 | 453 | |
454 | 454 | list($relation, $args[0]) = explode('.', $this->column); |
455 | 455 | |
456 | - return ['whereHas' => [$relation, function ($relation) use ($args) { |
|
456 | + return ['whereHas' => [$relation, function($relation) use ($args) { |
|
457 | 457 | call_user_func_array([$relation, $this->query], $args); |
458 | 458 | }]]; |
459 | 459 | } |
@@ -118,7 +118,7 @@ |
||
118 | 118 | throw new \InvalidArgumentException("[$model] must be a valid model class"); |
119 | 119 | } |
120 | 120 | |
121 | - $this->options = function ($value) use ($model, $idField, $textField) { |
|
121 | + $this->options = function($value) use ($model, $idField, $textField) { |
|
122 | 122 | if (empty($value)) { |
123 | 123 | return []; |
124 | 124 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | $this->value = Arr::get($inputs, $this->column); |
67 | 67 | |
68 | - $value = array_filter($this->value, function ($val) { |
|
68 | + $value = array_filter($this->value, function($val) { |
|
69 | 69 | return $val !== ''; |
70 | 70 | }); |
71 | 71 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | 'title' => $this->message, |
35 | 35 | ]; |
36 | 36 | |
37 | - $data = collect($data)->map(function ($val, $key) { |
|
37 | + $data = collect($data)->map(function($val, $key) { |
|
38 | 38 | return "data-{$key}=\"{$val}\""; |
39 | 39 | })->implode(' '); |
40 | 40 |
@@ -115,7 +115,7 @@ |
||
115 | 115 | */ |
116 | 116 | public function renderHeader() |
117 | 117 | { |
118 | - return collect($this->headers)->map(function ($item) { |
|
118 | + return collect($this->headers)->map(function($item) { |
|
119 | 119 | if ($item instanceof Renderable) { |
120 | 120 | return $item->render(); |
121 | 121 | } |