@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | public $params = []; |
26 | 26 | public $response = []; |
27 | 27 | public $valid_products = ['LSWS', 'LSLB']; |
28 | - public $valid_cpu = ['1','2','4','8','V','U']; |
|
29 | - public $valid_period = ['monthly','yearly','owned']; |
|
28 | + public $valid_cpu = ['1', '2', '4', '8', 'V', 'U']; |
|
29 | + public $valid_period = ['monthly', 'yearly', 'owned']; |
|
30 | 30 | public $valid_payment = ['credit', 'creditcard']; |
31 | 31 | public $raw_response; |
32 | 32 | |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | curl_setopt($ch, CURLOPT_POST, true); |
306 | 306 | $pstring = ''; |
307 | 307 | foreach ($this->params as $param => $value) { |
308 | - $pstring .= '&' . $param . '=' . $value . ''; |
|
308 | + $pstring .= '&'.$param.'='.$value.''; |
|
309 | 309 | } |
310 | 310 | $pstring = mb_substr($pstring, 1); |
311 | 311 | curl_setopt($ch, CURLOPT_POSTFIELDS, $pstring); |
@@ -313,10 +313,10 @@ discard block |
||
313 | 313 | curl_setopt($ch, CURLOPT_POST, false); |
314 | 314 | $pstring = ''; |
315 | 315 | foreach ($this->params as $param => $value) { |
316 | - $pstring .= '&' . $param . '=' . $value . ''; |
|
316 | + $pstring .= '&'.$param.'='.$value.''; |
|
317 | 317 | } |
318 | 318 | $pstring = mb_substr($pstring, 1); |
319 | - $url .= '?' . $pstring; |
|
319 | + $url .= '?'.$pstring; |
|
320 | 320 | } |
321 | 321 | myadmin_log('licenses', 'info', "LiteSpeed URL: $url\npstring: $pstring\n", __LINE__, __FILE__); |
322 | 322 | curl_setopt($ch, CURLOPT_URL, $url); |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | |
338 | 338 | // Extract the response details. |
339 | 339 | $this->response = xml2array($this->raw_response); |
340 | - myadmin_log('licenses', 'info', 'LiteSpeed Response ' . var_export($this->response, true), __LINE__, __FILE__); |
|
340 | + myadmin_log('licenses', 'info', 'LiteSpeed Response '.var_export($this->response, true), __LINE__, __FILE__); |
|
341 | 341 | if (empty($this->response['error'])) { |
342 | 342 | unset($this->response['error']); |
343 | 343 | return $this->response; |