We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $this->crud->allowAccess('update'); |
38 | 38 | |
39 | - LifecycleHook::hookInto('update:before_setup', function () { |
|
39 | + LifecycleHook::hookInto('update:before_setup', function() { |
|
40 | 40 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
41 | 41 | |
42 | 42 | if ($this->crud->getModel()->translationEnabled()) { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $this->crud->setupDefaultSaveActions(); |
51 | 51 | }); |
52 | 52 | |
53 | - LifecycleHook::hookInto(['list:before_setup', 'show:before_setup'], function () { |
|
53 | + LifecycleHook::hookInto(['list:before_setup', 'show:before_setup'], function() { |
|
54 | 54 | $this->crud->addButton('line', 'update', 'view', 'crud::buttons.update', 'end'); |
55 | 55 | }); |
56 | 56 | } |
@@ -83,8 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
85 | 85 | return request()->ajax() ? |
86 | - view('crud::components.form.form_ajax_view', $this->data) : |
|
87 | - view($this->crud->getEditView(), $this->data); |
|
86 | + view('crud::components.form.form_ajax_view', $this->data) : view($this->crud->getEditView(), $this->data); |
|
88 | 87 | } |
89 | 88 | |
90 | 89 | /** |
@@ -27,13 +27,13 @@ |
||
27 | 27 | |
28 | 28 | ) { |
29 | 29 | // Get CRUD panel instance from the controller |
30 | - if(CrudManager::hasCrudPanel($controller)) { |
|
30 | + if (CrudManager::hasCrudPanel($controller)) { |
|
31 | 31 | $previousOperation = CrudManager::getCrudPanel($controller)->getOperation(); |
32 | 32 | } |
33 | 33 | |
34 | 34 | $this->crud = CrudManager::setupCrudPanel($controller, $operation); |
35 | 35 | |
36 | - if(isset(($previousOperation))) { |
|
36 | + if (isset(($previousOperation))) { |
|
37 | 37 | $this->crud->setOperation($previousOperation); |
38 | 38 | } |
39 | 39 |