@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $tags = Tag::getWithType($tagType); |
| 43 | 43 | |
| 44 | 44 | return $this->getAllOnline() |
| 45 | - ->groupBy(function (Model $model) use ($tagType) { |
|
| 45 | + ->groupBy(function(Model $model) use ($tagType) { |
|
| 46 | 46 | $firstTag = $model->tagsWithType($tagType)->first(); |
| 47 | 47 | |
| 48 | 48 | if (!$firstTag) { |
@@ -51,13 +51,13 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | return $firstTag->id; |
| 53 | 53 | }) |
| 54 | - ->map(function ($tagIdsWithModels, int $tagId) use ($tags) { |
|
| 54 | + ->map(function($tagIdsWithModels, int $tagId) use ($tags) { |
|
| 55 | 55 | return [ |
| 56 | 56 | 'tag' => $tags->get($tagId), |
| 57 | 57 | 'models' => collect($tagIdsWithModels)->values(), |
| 58 | 58 | ]; |
| 59 | 59 | }) |
| 60 | - ->sortBy(function (array $tagsAndModels) { |
|
| 60 | + ->sortBy(function(array $tagsAndModels) { |
|
| 61 | 61 | return $tagsAndModels['tag']->order_column; |
| 62 | 62 | }) |
| 63 | 63 | ->values(); |