We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->crud->allowAccess('bulkDelete'); |
31 | 31 | |
32 | - $this->crud->operation('list', function () { |
|
32 | + $this->crud->operation('list', function() { |
|
33 | 33 | $this->crud->enableBulkActions(); |
34 | 34 | $this->crud->addButton('bottom', 'bulk_delete', 'view', 'crud::buttons.bulk_delete'); |
35 | 35 | }); |
@@ -42,13 +42,13 @@ |
||
42 | 42 | { |
43 | 43 | $this->crud->allowAccess('create'); |
44 | 44 | |
45 | - $this->crud->operation('create', function () { |
|
45 | + $this->crud->operation('create', function() { |
|
46 | 46 | $this->crud->set('create.groupedErrors', config('backpack.crud.show_grouped_errors', true)); |
47 | 47 | $this->crud->set('create.inlineErrors', config('backpack.crud.show_inline_errors', true)); |
48 | 48 | $this->crud->set('create.autoFocusOnFirstField', true); |
49 | 49 | }); |
50 | 50 | |
51 | - $this->crud->operation('list', function () { |
|
51 | + $this->crud->operation('list', function() { |
|
52 | 52 | $this->crud->addButton('top', 'create', 'view', 'crud::buttons.create'); |
53 | 53 | }); |
54 | 54 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->crud->allowAccess('show'); |
31 | 31 | |
32 | - $this->crud->operation('list', function () { |
|
32 | + $this->crud->operation('list', function() { |
|
33 | 33 | $this->crud->addButton('line', 'show', 'view', 'crud::buttons.show', 'beginning'); |
34 | 34 | }); |
35 | 35 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->crud->allowAccess('clone'); |
31 | 31 | |
32 | - $this->crud->operation(['list', 'show'], function () { |
|
32 | + $this->crud->operation(['list', 'show'], function() { |
|
33 | 33 | $this->crud->addButton('line', 'clone', 'view', 'crud::buttons.clone', 'end'); |
34 | 34 | }); |
35 | 35 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->crud->allowAccess('delete'); |
31 | 31 | |
32 | - $this->crud->operation(['list', 'show'], function () { |
|
32 | + $this->crud->operation(['list', 'show'], function() { |
|
33 | 33 | $this->crud->addButton('line', 'delete', 'view', 'crud::buttons.delete', 'end'); |
34 | 34 | }); |
35 | 35 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | // call the setup function inside this closure to also have the request there |
29 | 29 | // this way, developers can use things stored in session (auth variables, etc) |
30 | - $this->middleware(function ($request, $next) { |
|
30 | + $this->middleware(function($request, $next) { |
|
31 | 31 | // make a new CrudPanel object, from the one stored in Laravel's service container |
32 | 32 | $this->crud = app()->make('crud'); |
33 | 33 | $this->request = $request; |
@@ -247,7 +247,7 @@ |
||
247 | 247 | |
248 | 248 | private function getButtonByName($name) |
249 | 249 | { |
250 | - return $this->crudPanel->buttons()->first(function ($value) use ($name) { |
|
250 | + return $this->crudPanel->buttons()->first(function($value) use ($name) { |
|
251 | 251 | return $value->name == $name; |
252 | 252 | }); |
253 | 253 | } |
@@ -110,14 +110,14 @@ |
||
110 | 110 | // if there was an order set, this will be the last one (after all others were applied) |
111 | 111 | $orderBy = $this->crud->query->getQuery()->orders; |
112 | 112 | $hasOrderByPrimaryKey = false; |
113 | - collect($orderBy)->each(function ($item, $key) use ($hasOrderByPrimaryKey) { |
|
113 | + collect($orderBy)->each(function($item, $key) use ($hasOrderByPrimaryKey) { |
|
114 | 114 | if ($item['column'] == $this->crud->model->getKeyName()) { |
115 | 115 | $hasOrderByPrimaryKey = true; |
116 | 116 | |
117 | 117 | return false; |
118 | 118 | } |
119 | 119 | }); |
120 | - if (! $hasOrderByPrimaryKey) { |
|
120 | + if (!$hasOrderByPrimaryKey) { |
|
121 | 121 | $this->crud->query->orderByDesc($this->crud->model->getKeyName()); |
122 | 122 | } |
123 | 123 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | 'middleware' => 'web', |
17 | 17 | 'prefix' => config('backpack.base.route_prefix'), |
18 | 18 | ], |
19 | -function () { |
|
19 | +function() { |
|
20 | 20 | // if not otherwise configured, setup the auth routes |
21 | 21 | if (config('backpack.base.setup_auth_routes')) { |
22 | 22 | // Authentication Routes... |