foreach ($domains as $domain) { $fileId =
$this->
getFileIdByDomain($fileList,
$domain);
if (!
$fileId) { continue;
} foreach ($locales as $locale) { if ($locale !==
$this->defaultLocale
) { $response =
$this->
exportProjectTranslations($localeLanguageMap[$locale],
$fileId);
} else { $response =
$this->
downloadSourceFile($fileId);
} $responses[] =
[$response,
$locale,
$domain];
} } /* @var ResponseInterface $response */
$downloads =
[];
foreach ($responses as [$response,
$locale,
$domain]) { if (204 ===
$response->
getStatusCode()) { $this->logger->
error(sprintf('No content in exported file: "%s".',
$response->
getContent(false
)));