fix(formating)
This commit is contained in:
@@ -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}"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user