Code Duplication    Length = 3-3 lines in 2 locations

library/Requests/Transport/fsockopen.php 1 location

@@ 315-317 (lines=3) @@
312
				$responses[$id] = $e;
313
			}
314
315
			if (!is_string($responses[$id])) {
316
				$request['options']['hooks']->dispatch('multiple.request.complete', array(&$responses[$id], $id));
317
			}
318
		}
319
320
		return $responses;

library/Requests/Transport/cURL.php 1 location

@@ 289-291 (lines=3) @@
286
				curl_multi_remove_handle($multihandle, $done['handle']);
287
				curl_close($done['handle']);
288
289
				if (!is_string($responses[$key])) {
290
					$options['hooks']->dispatch('multiple.request.complete', array(&$responses[$key], $key));
291
				}
292
				$completed++;
293
			}
294
			$microseconds_taken_by_last_curl_operation = (microtime(true) - $operation_start) * 100000;