Code Duplication    Length = 8-8 lines in 2 locations

src/CurlHTTPClient.php 2 locations

@@ 66-73 (lines=8) @@
63
		$this->curl->setopt(CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
64
65
		switch ($request->method) {
66
			case 'POST':
67
				$this->curl->setopt_array(
68
					array(
69
						CURLOPT_POST => true,
70
						CURLOPT_POSTFIELDS => $request->payload
71
					)
72
				);
73
			break;
74
75
			case 'PUT':
76
				$this->curl->setopt_array(
@@ 75-82 (lines=8) @@
72
				);
73
			break;
74
75
			case 'PUT':
76
				$this->curl->setopt_array(
77
					array(
78
						CURLOPT_PUT => true,
79
						CURLOPT_POSTFIELDS => $request->payload
80
					)
81
				);
82
			break;
83
84
			case 'DELETE':
85
				if ($payload = http_build_query($request->payload)) {