Code Duplication    Length = 4-4 lines in 2 locations

library/Requests/Transport/cURL.php 1 location

@@ 139-142 (lines=4) @@
136
137
		if ($options['filename'] !== false) {
138
			@$this->stream_handle = fopen($options['filename'], 'wb');
139
			if($this->stream_handle===false) {
140
				$error = error_get_last();
141
				throw new Requests_Exception($error['message'], 'fopen');
142
			}
143
		}
144
145
		$this->response_data = '';

library/Requests/Transport/fsockopen.php 1 location

@@ 238-241 (lines=4) @@
235
		$download = false;
236
		if ($options['filename']) {
237
			@$download = fopen($options['filename'], 'wb');
238
			if($download===false) {
239
				$error = error_get_last();
240
				throw new Requests_Exception($error['message'], 'fopen');
241
			}
242
		}
243
244
		while (!feof($socket)) {