@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | $result = is_string($strResponse) ? substr($strResponse, $iHeaderSize) : ''; |
522 | 522 | } else { |
523 | 523 | $strError = is_string($strResponse) ? substr($strResponse, $iHeaderSize) : ''; |
524 | - if (strlen($strError) > 0) { |
|
524 | + if (strlen($strError) > 0) { |
|
525 | 525 | $aError = json_decode($strError, true); |
526 | 526 | if (isset($aError['error'])) { |
527 | 527 | $this->strLastError = $aError['error']['message'] ?? ''; |
@@ -558,11 +558,11 @@ discard block |
||
558 | 558 | { |
559 | 559 | $aHeader = []; |
560 | 560 | $strHeader = trim($strHeader); |
561 | - $aLine = explode("\n",$strHeader); |
|
561 | + $aLine = explode("\n", $strHeader); |
|
562 | 562 | $aHeader['status'] = $aLine[0]; |
563 | 563 | array_shift($aLine); |
564 | 564 | |
565 | - foreach($aLine as $strLine){ |
|
565 | + foreach ($aLine as $strLine) { |
|
566 | 566 | // only consider the first colon, since other colons can also appear in |
567 | 567 | // the header value - the rest of such a value would be lost |
568 | 568 | // (eg "Location: https: // www ...." - "// www ...." would be gone !) |