Skip to content

Commit ebc83fa

Browse files
committed
Fix CS
1 parent 66444b6 commit ebc83fa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Picqer/Carriers/SendCloud/Connection.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,15 @@ public function parseResponse(ResponseInterface $response)
174174
$resultArray = json_decode($responseBody, true);
175175

176176
if (! is_array($resultArray)) {
177-
throw new SendCloudApiException(sprintf('SendCloud error %s: %s', $response->getStatusCode(), $responseBody), $response->getStatusCode());
177+
throw new SendCloudApiException(sprintf(
178+
'SendCloud error %s: %s',
179+
$response->getStatusCode(),
180+
$responseBody
181+
), $response->getStatusCode());
178182
}
179183

180-
if (array_key_exists('error', $resultArray)
184+
if (
185+
array_key_exists('error', $resultArray)
181186
&& is_array($resultArray['error'])
182187
&& array_key_exists('message', $resultArray['error'])
183188
) {

0 commit comments

Comments
 (0)