fix(formating)

This commit is contained in:
Anatoliy Poloz
2026-01-28 03:36:26 +03:00
parent 1723177949
commit b15d29f8e9
313 changed files with 1863 additions and 1533 deletions

View File

@@ -22,7 +22,7 @@ trait HasAlfaErrorHandling
$contentType = $response->header('Content-Type') ?? '';
if (str_contains($contentType, 'application/json')) {
$data = $response->json();
if (isset($data['error']) || (isset($data['ErrorCode']) && (string)$data['ErrorCode'] !== '0')) {
if (isset($data['error']) || (isset($data['ErrorCode']) && (string) $data['ErrorCode'] !== '0')) {
return true;
}
}
@@ -50,8 +50,8 @@ trait HasAlfaErrorHandling
}
return new AlfaBankException(
$response,
(string)$errorCode,
$response,
(string) $errorCode,
"({$requestId}) {$errorDescription}"
);
}