Skip to content

Commit

Permalink
[TASK] Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fseipel committed Nov 4, 2024
1 parent 0d2a754 commit e4d5f04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function sendFileToApi(FileInterface $fileObject, string $textPrompt = ''
$urlParts[] = 'prompt=' . urlencode($textPrompt);
}
if (!empty($targetLanguage)) {
$urlParts[] = '&target_lang=' . urlencode(LanguageScriptUtility::getLanguageScript($targetLanguage));
$urlParts[] = '&target_lang=' . urlencode((string) LanguageScriptUtility::getLanguageScript($targetLanguage));
}

$url = $this->domain . '/img2desc_file/' . '?' . implode('&', $urlParts);
Expand Down

0 comments on commit e4d5f04

Please sign in to comment.