We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function applySearchTerm($searchTerm) |
24 | 24 | { |
25 | - return $this->query->where(function ($query) use ($searchTerm) { |
|
25 | + return $this->query->where(function($query) use ($searchTerm) { |
|
26 | 26 | foreach ($this->columns() as $column) { |
27 | - if (! isset($column['type'])) { |
|
27 | + if (!isset($column['type'])) { |
|
28 | 28 | abort(400, 'Missing column type when trying to apply search term.'); |
29 | 29 | } |
30 | 30 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | case 'select': |
86 | 86 | case 'select_multiple': |
87 | - $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm, $searchOperator) { |
|
87 | + $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm, $searchOperator) { |
|
88 | 88 | $q->where($this->getColumnWithTableNamePrefixed($q, $column['attribute']), $searchOperator, '%'.$searchTerm.'%'); |
89 | 89 | }); |
90 | 90 | break; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $column_direction = (strtolower((string) $order['dir']) == 'asc' ? 'ASC' : 'DESC'); |
109 | 109 | $column = $this->findColumnById($column_number); |
110 | 110 | |
111 | - if ($column['tableColumn'] && ! isset($column['orderLogic'])) { |
|
111 | + if ($column['tableColumn'] && !isset($column['orderLogic'])) { |
|
112 | 112 | if (method_exists($this->model, 'translationEnabled') && |
113 | 113 | $this->model->translationEnabled() && |
114 | 114 | $this->model->isTranslatableAttribute($column['name']) && |
@@ -136,12 +136,12 @@ discard block |
||
136 | 136 | $key = $this->model->getKeyName(); |
137 | 137 | $groupBy = $this->query->toBase()->groups; |
138 | 138 | |
139 | - $hasOrderByPrimaryKey = collect($orderBy)->some(function ($item) use ($key, $table) { |
|
139 | + $hasOrderByPrimaryKey = collect($orderBy)->some(function($item) use ($key, $table) { |
|
140 | 140 | return (isset($item['column']) && $item['column'] === $key) |
141 | 141 | || (isset($item['sql']) && str_contains($item['sql'], "$table.$key")); |
142 | 142 | }); |
143 | 143 | |
144 | - if (! $hasOrderByPrimaryKey && empty($groupBy)) { |
|
144 | + if (!$hasOrderByPrimaryKey && empty($groupBy)) { |
|
145 | 145 | $this->orderByWithPrefix($key, 'DESC'); |
146 | 146 | } |
147 | 147 | } |
@@ -320,13 +320,13 @@ discard block |
||
320 | 320 | if (isset($column['type'])) { |
321 | 321 | // create a list of paths to column blade views |
322 | 322 | // including the configured view_namespaces |
323 | - $columnPaths = array_map(function ($item) use ($column) { |
|
323 | + $columnPaths = array_map(function($item) use ($column) { |
|
324 | 324 | return $item.'.'.$column['type']; |
325 | 325 | }, ViewNamespaces::getFor('columns')); |
326 | 326 | |
327 | 327 | // but always fall back to the stock 'text' column |
328 | 328 | // if a view doesn't exist |
329 | - if (! in_array('crud::columns.text', $columnPaths)) { |
|
329 | + if (!in_array('crud::columns.text', $columnPaths)) { |
|
330 | 330 | $columnPaths[] = 'crud::columns.text'; |
331 | 331 | } |
332 | 332 | |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | */ |
366 | 366 | private function renderCellView($view, $column, $entry, $rowNumber = false) |
367 | 367 | { |
368 | - if (! view()->exists($view)) { |
|
368 | + if (!view()->exists($view)) { |
|
369 | 369 | $view = 'crud::columns.text'; // fallback to text column |
370 | 370 | } |
371 | 371 |