We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,9 +23,9 @@ |
||
23 | 23 | // sent in the request that are not in the database |
24 | 24 | $itemKeys = $this->model->query()->select($primaryKey)->get()->pluck($primaryKey); |
25 | 25 | |
26 | - $reorderItems = collect($request)->filter(function ($item) use ($itemKeys) { |
|
26 | + $reorderItems = collect($request)->filter(function($item) use ($itemKeys) { |
|
27 | 27 | return $item['item_id'] !== '' && $item['item_id'] !== null && $itemKeys->contains($item['item_id']); |
28 | - })->map(function ($item) use ($primaryKey) { |
|
28 | + })->map(function($item) use ($primaryKey) { |
|
29 | 29 | $item[$primaryKey] = (int) $item['item_id']; |
30 | 30 | $item['parent_id'] = empty($item['parent_id']) ? null : (int) $item['parent_id']; |
31 | 31 | $item['depth'] = empty($item['depth']) ? null : (int) $item['depth']; |