Code Duplication    Length = 3-5 lines in 2 locations

library/Requests.php 2 locations

@@ 927-931 (lines=5) @@
924
			$huffman_encoded = true;
925
		}
926
927
		if ($huffman_encoded) {
928
			if (false !== ($decompressed = @gzinflate(substr($gzData, 2)))) {
929
				return $decompressed;
930
			}
931
		}
932
933
		if ("\x50\x4b\x03\x04" == substr($gzData, 0, 4)) {
934
			// ZIP file format header
@@ 955-957 (lines=3) @@
952
			// Determine the first byte of data, based on the above ZIP header
953
			// offsets:
954
			$first_file_start = array_sum(unpack('v2', substr($gzData, 26, 4)));
955
			if (false !== ($decompressed = @gzinflate(substr($gzData, 30 + $first_file_start)))) {
956
				return $decompressed;
957
			}
958
			return false;
959
		}
960