if (500 <=
$statusCode) { throw new ProviderException(sprintf('Unable to add translation for key "%s" in locale "%s" to Loco.',
$id,
$locale),
$response);
} } } } private function tagsAssets(array
$ids, string
$tag): void
{ if (!\
in_array($tag,
$this->
getTags(), true
)) { $this->
createTag($tag);
} // Separate ids with and without comma.
$idsWithComma =
$idsWithoutComma =
[];
foreach ($ids as $id) { if (str_contains($id, ','
)) { $idsWithComma[] =
$id;
} else { $idsWithoutComma[] =
$id;
} }