Code Duplication    Length = 3-3 lines in 2 locations

src/LiteSpeed.php 2 locations

@@ 308-310 (lines=3) @@
305
		if ($this->usePost !== FALSE) {
306
			curl_setopt($ch, CURLOPT_POST, TRUE);
307
			$pstring = '';
308
			foreach ($this->params as $param => $value) {
309
				$pstring .= '&'.$param.'='.$value.'';
310
			}
311
			$pstring = mb_substr($pstring, 1);
312
			curl_setopt($ch, CURLOPT_POSTFIELDS, $pstring);
313
		} else {
@@ 316-318 (lines=3) @@
313
		} else {
314
			curl_setopt($ch, CURLOPT_POST, FALSE);
315
			$pstring = '';
316
			foreach ($this->params as $param => $value) {
317
				$pstring .= '&'.$param.'='.$value.'';
318
			}
319
			$pstring = mb_substr($pstring, 1);
320
			$url .= '?'.$pstring;
321
		}