We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $this->crud->allowAccess('list'); |
| 43 | 43 | |
| 44 | - $this->crud->operation('list', function () { |
|
| 44 | + $this->crud->operation('list', function() { |
|
| 45 | 45 | $this->crud->loadDefaultOperationSettingsFromConfig(); |
| 46 | 46 | }); |
| 47 | 47 | } |
@@ -116,12 +116,12 @@ discard block |
||
| 116 | 116 | $table = $this->crud->model->getTable(); |
| 117 | 117 | $key = $this->crud->model->getKeyName(); |
| 118 | 118 | |
| 119 | - $hasOrderByPrimaryKey = collect($orderBy)->some(function ($item) use ($key, $table) { |
|
| 119 | + $hasOrderByPrimaryKey = collect($orderBy)->some(function($item) use ($key, $table) { |
|
| 120 | 120 | return (isset($item['column']) && $item['column'] === $key) |
| 121 | 121 | || (isset($item['sql']) && str_contains($item['sql'], "$table.$key")); |
| 122 | 122 | }); |
| 123 | 123 | |
| 124 | - if (! $hasOrderByPrimaryKey) { |
|
| 124 | + if (!$hasOrderByPrimaryKey) { |
|
| 125 | 125 | $this->crud->orderByWithPrefix($this->crud->model->getKeyName(), 'DESC'); |
| 126 | 126 | } |
| 127 | 127 | |