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.ajax_response', $this->data) : |
|
| 87 | - view($this->crud->getEditView(), $this->data); |
|
| 86 | + view('crud::components.form.ajax_response', $this->data) : view($this->crud->getEditView(), $this->data); |
|
| 88 | 87 | } |
| 89 | 88 | |
| 90 | 89 | /** |
@@ -36,11 +36,11 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $this->crud->allowAccess('create'); |
| 38 | 38 | |
| 39 | - LifecycleHook::hookInto('create:before_setup', function () { |
|
| 39 | + LifecycleHook::hookInto('create:before_setup', function() { |
|
| 40 | 40 | $this->crud->setupDefaultSaveActions(); |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | - LifecycleHook::hookInto('list:before_setup', function () { |
|
| 43 | + LifecycleHook::hookInto('list:before_setup', function() { |
|
| 44 | 44 | $this->crud->addButton('top', 'create', 'view', 'crud::buttons.create'); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -61,8 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
| 63 | 63 | return request()->ajax() ? |
| 64 | - view('crud::components.form.ajax_response', $this->data) : |
|
| 65 | - view($this->crud->getCreateView(), $this->data); |
|
| 64 | + view('crud::components.form.ajax_response', $this->data) : view($this->crud->getCreateView(), $this->data); |
|
| 66 | 65 | } |
| 67 | 66 | |
| 68 | 67 | /** |