@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function render() |
| 89 | 89 | { |
| 90 | - $columns = $this->getVisibleColumns()->map(function (Column $column) { |
|
| 90 | + $columns = $this->getVisibleColumns()->map(function(Column $column) { |
|
| 91 | 91 | $name = $column->getName(); |
| 92 | 92 | |
| 93 | 93 | $total = ''; |
@@ -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 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | Admin::script($this->script()); |
| 69 | 69 | |
| 70 | - $options = $this->getOptions()->map(function ($option) { |
|
| 70 | + $options = $this->getOptions()->map(function($option) { |
|
| 71 | 71 | $selected = ($option == $this->perPage) ? 'selected' : ''; |
| 72 | 72 | $url = \request()->fullUrlWithQuery([$this->perPageName => $option]); |
| 73 | 73 | |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | return []; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - $selected = array_filter($selected, function ($value) { |
|
| 109 | + $selected = array_filter($selected, function($value) { |
|
| 110 | 110 | return !is_null($value); |
| 111 | 111 | }); |
| 112 | 112 | |
@@ -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,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $active = Selector::parseSelected(); |
| 48 | 48 | |
| 49 | - $this->selector->getSelectors()->each(function ($selector, $column) use ($active) { |
|
| 49 | + $this->selector->getSelectors()->each(function($selector, $column) use ($active) { |
|
| 50 | 50 | if (!array_key_exists($column, $active)) { |
| 51 | 51 | return; |
| 52 | 52 | } |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | public function style($style) |
| 121 | 121 | { |
| 122 | 122 | if (is_array($style)) { |
| 123 | - $style = implode(';', array_map(function ($key, $val) { |
|
| 123 | + $style = implode(';', array_map(function($key, $val) { |
|
| 124 | 124 | return "$key:$val"; |
| 125 | 125 | }, array_keys($style), array_values($style))); |
| 126 | 126 | } |
@@ -236,7 +236,7 @@ |
||
| 236 | 236 | public static function import() |
| 237 | 237 | { |
| 238 | 238 | $extension = static::getInstance(); |
| 239 | - DB::transaction(function () use ($extension) { |
|
| 239 | + DB::transaction(function() use ($extension) { |
|
| 240 | 240 | if ($menu = $extension->menu()) { |
| 241 | 241 | if ($extension->validateMenu($menu)) { |
| 242 | 242 | extract($menu); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function removeFields($fields) |
| 50 | 50 | { |
| 51 | - $this->fields = $this->fields->reject(function (Field $field) use ($fields) { |
|
| 51 | + $this->fields = $this->fields->reject(function(Field $field) use ($fields) { |
|
| 52 | 52 | return in_array($field->column(), $fields); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | if (empty($selectedOption)) { |
| 43 | 43 | $selected = $this->choice('Please choose a role for the user', $selectedOption, null, null, true); |
| 44 | 44 | |
| 45 | - $roles = $roles->filter(function ($role) use ($selected) { |
|
| 45 | + $roles = $roles->filter(function($role) use ($selected) { |
|
| 46 | 46 | return in_array($role->name, $selected); |
| 47 | 47 | }); |
| 48 | 48 | } |