Skip to content

Commit f411db5

Browse files
committed
chore: cs
1 parent 66c2df2 commit f411db5

File tree

2 files changed

+6804
-4
lines changed

2 files changed

+6804
-4
lines changed

Diff for: packages/panels/src/GlobalSearch/GlobalSearchResults.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
class GlobalSearchResults
99
{
1010
protected Collection $categories;
11+
1112
protected Collection $sorting;
1213

1314
final public function __construct()
@@ -22,9 +23,7 @@ public static function make(): static
2223
}
2324

2425
/**
25-
* @param string $name
26-
* @param array<GlobalSearchResult> | Arrayable $results
27-
* @param int|null $sort
26+
* @param array<GlobalSearchResult> | Arrayable $results
2827
* @return GlobalSearchResults
2928
*/
3029
public function category(string $name, array | Arrayable $results = [], ?int $sort = null): static
@@ -38,8 +37,10 @@ public function category(string $name, array | Arrayable $results = [], ?int $so
3837
public function getCategories(): Collection
3938
{
4039
$index = 0;
41-
return $this->categories->sortBy(function($value, $key) use (&$index) {
40+
41+
return $this->categories->sortBy(function ($value, $key) use (&$index) {
4242
$index++;
43+
4344
return $this->sorting->get($key) ?? $index + 100000;
4445
});
4546
}

0 commit comments

Comments
 (0)