Skip to content

Commit 76d6851

Browse files
committed
No need to use count on integer
1 parent 220753c commit 76d6851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ScoutEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected function filters(Builder $builder)
168168
*/
169169
public function map($results, $model)
170170
{
171-
if (count($results['hits']['total']) === 0) {
171+
if ($results['hits']['total'] === 0) {
172172
return Collection::make();
173173
}
174174

0 commit comments

Comments
 (0)