We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -30,25 +30,25 @@ discard block |
||
| 30 | 30 | $this->crud->allowAccess('show'); |
| 31 | 31 | $this->crud->setOperationSetting('setFromDb', true); |
| 32 | 32 | |
| 33 | - $this->crud->operation('show', function () { |
|
| 33 | + $this->crud->operation('show', function() { |
|
| 34 | 34 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 35 | 35 | |
| 36 | - if (! method_exists($this, 'setupShowOperation')) { |
|
| 36 | + if (!method_exists($this, 'setupShowOperation')) { |
|
| 37 | 37 | $this->autoSetupShowOperation(); |
| 38 | 38 | } |
| 39 | 39 | }); |
| 40 | 40 | |
| 41 | - $this->crud->operation('list', function () { |
|
| 41 | + $this->crud->operation('list', function() { |
|
| 42 | 42 | $this->crud->addButton('line', 'show', 'view', 'crud::buttons.show', 'beginning'); |
| 43 | 43 | }); |
| 44 | 44 | |
| 45 | - $this->crud->operation(['create', 'update'], function () { |
|
| 45 | + $this->crud->operation(['create', 'update'], function() { |
|
| 46 | 46 | $this->crud->addSaveAction([ |
| 47 | 47 | 'name' => 'save_and_preview', |
| 48 | - 'visible' => function ($crud) { |
|
| 48 | + 'visible' => function($crud) { |
|
| 49 | 49 | return $crud->hasAccess('show'); |
| 50 | 50 | }, |
| 51 | - 'redirect' => function ($crud, $request, $itemId = null) { |
|
| 51 | + 'redirect' => function($crud, $request, $itemId = null) { |
|
| 52 | 52 | $itemId = $itemId ?: $request->input('id'); |
| 53 | 53 | $redirectUrl = $crud->route.'/'.$itemId.'/show'; |
| 54 | 54 | if ($request->has('_locale')) { |
@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | $this->data['title'] = $this->crud->getTitle() ?? trans('backpack::crud.preview').' '.$this->crud->entity_name; |
| 80 | 80 | |
| 81 | 81 | // get the info for that entry (include softDeleted items if the trait is used) |
| 82 | - if (! $this->crud->get('show.softDeletes') || ! in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses($this->crud->model))) { |
|
| 82 | + if (!$this->crud->get('show.softDeletes') || !in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses($this->crud->model))) { |
|
| 83 | 83 | $this->data['entry'] = $this->crud->getEntryWithLocale($id); |
| 84 | 84 | return view($this->crud->getShowView(), $this->data); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - if($this->crud->get('show.usePanelQuery')) { |
|
| 87 | + if ($this->crud->get('show.usePanelQuery')) { |
|
| 88 | 88 | $this->data['entry'] = $this->crud->query->withTrashed()->findOrFail($id); |
| 89 | 89 | $this->data['entry'] = $this->crud->setLocaleOnModel($this->data['entry']); |
| 90 | 90 | return view($this->crud->getShowView(), $this->data); |