Skip to content

Commit

Permalink
Merge pull request #416 from rmccue/feature/cs-use-combined-assignmen…
Browse files Browse the repository at this point in the history
…t-operators

CS: use combined assignment operators
  • Loading branch information
schlessera authored Nov 3, 2020
2 parents 549e3fd + fe3dd6f commit 73790bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ public static function compatible_gzinflate($gz_data) {
if ($flg > 0) {
if ($flg & 4) {
list($xlen) = unpack('v', substr($gz_data, $i, 2));
$i = $i + 2 + $xlen;
$i += 2 + $xlen;
}
if ($flg & 8) {
$i = strpos($gz_data, "\0", $i) + 1;
Expand All @@ -894,7 +894,7 @@ public static function compatible_gzinflate($gz_data) {
$i = strpos($gz_data, "\0", $i) + 1;
}
if ($flg & 2) {
$i = $i + 2;
$i += 2;
}
}
$decompressed = self::compatible_gzinflate(substr($gz_data, $i));
Expand Down

0 comments on commit 73790bc

Please sign in to comment.