Skip to content

Commit

Permalink
Fix bug SonarCloud flagged [WEB-2934]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Dec 19, 2024
1 parent 6942b3c commit ec52cb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Console/Commands/AI/ImageSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ protected function displayResults(object $results, string $searchUrl): void
}
}

$similarity = (1 - $result->distance) * 100;
$similarity = (1 - $item->distance) * 100;
return [
$result->model_id,
$result->model_name,
$item->model_id,
$item->model_name,
number_format($similarity, 2) . '%',
$result->created_at,
$result->updated_at
$item->created_at,
$item->updated_at
];
})->toArray();

Expand Down

0 comments on commit ec52cb9

Please sign in to comment.