Code Duplication    Length = 3-5 lines in 2 locations

library/Requests.php 2 locations

@@ 914-918 (lines=5) @@
911
			$huffman_encoded = true;
912
		}
913
914
		if ($huffman_encoded) {
915
			if (false !== ($decompressed = @gzinflate(substr($gzData, 2)))) {
916
				return $decompressed;
917
			}
918
		}
919
920
		if ("\x50\x4b\x03\x04" == substr($gzData, 0, 4)) {
921
			// ZIP file format header
@@ 942-944 (lines=3) @@
939
			// Determine the first byte of data, based on the above ZIP header
940
			// offsets:
941
			$first_file_start = array_sum(unpack('v2', substr($gzData, 26, 4)));
942
			if (false !== ($decompressed = @gzinflate(substr($gzData, 30 + $first_file_start)))) {
943
				return $decompressed;
944
			}
945
			return false;
946
		}
947