'tl' => $this->targetLanguage,
'tk' => $this->tokenProvider->generateToken($this->sourceLanguage, $this->targetLanguage, $tokenData),
]);
$queryUrl = preg_replace('/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', http_build_query($queryArray));
try {
$response = $this->httpClient->post($this->urlBase, ['body' => $queryUrl]);
} catch (GuzzleRequestException $e) {
throw new ErrorException($e->getMessage());
}
$body = $response->getBody();
$bodyJson = preg_replace(array_keys($this->resultRegexes), array_values($this->resultRegexes), $body);
if (($bodyArray = json_decode($bodyJson, true)) === null) {