Completed
Push — master ( f6a7cf...dfb849 )
by Sebastian
03:36
created
app/Foundation/Repositories/DbRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.