@@ -70,11 +70,11 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $searchables = $searchable->getScoutModelsByIds($builder, |
73 | - collect($results['hits'])->pluck('objectID')->values()->all())->keyBy(function ($searchable) { |
|
73 | + collect($results['hits'])->pluck('objectID')->values()->all())->keyBy(function($searchable) { |
|
74 | 74 | return $searchable->getScoutKey(); |
75 | 75 | })->map->getModel(); |
76 | 76 | |
77 | - return Collection::make($results['hits'])->map(function ($hit) use ($searchables) { |
|
77 | + return Collection::make($results['hits'])->map(function($hit) use ($searchables) { |
|
78 | 78 | if (isset($searchables[$hit['objectID']])) { |
79 | 79 | return $searchables[$hit['objectID']]; |
80 | 80 | } |