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 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $column_number = (int) $order['column']; |
100 | 100 | $column_direction = (string) $order['dir']; |
101 | 101 | |
102 | - if (! in_array(strtolower($order['dir']), ['asc', 'desc'])) { |
|
102 | + if (!in_array(strtolower($order['dir']), ['asc', 'desc'])) { |
|
103 | 103 | $column_direction = 'asc'; |
104 | 104 | } |
105 | 105 | $column = $this->crud->findColumnById($column_number); |
@@ -123,12 +123,12 @@ discard block |
||
123 | 123 | $table = $this->crud->model->getTable(); |
124 | 124 | $key = $this->crud->model->getKeyName(); |
125 | 125 | |
126 | - $hasOrderByPrimaryKey = collect($orderBy)->some(function ($item) use ($key, $table) { |
|
126 | + $hasOrderByPrimaryKey = collect($orderBy)->some(function($item) use ($key, $table) { |
|
127 | 127 | return (isset($item['column']) && $item['column'] === $key) |
128 | 128 | || (isset($item['sql']) && str_contains($item['sql'], "$table.$key")); |
129 | 129 | }); |
130 | 130 | |
131 | - if (! $hasOrderByPrimaryKey) { |
|
131 | + if (!$hasOrderByPrimaryKey) { |
|
132 | 132 | $this->crud->orderByWithPrefix($this->crud->model->getKeyName(), 'DESC'); |
133 | 133 | } |
134 | 134 |