Code Duplication    Length = 3-3 lines in 2 locations

src/LiteSpeed.php 2 locations

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