@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } elseif (strpos($host, 'https://') === 0) { |
31 | 31 | $_host = substr($host, 8, strlen($host) - 8); |
32 | 32 | } else { |
33 | - throw new CMQClientParameterException('Only support http(s) prototol. Invalid endpoint:'.$host); |
|
33 | + throw new CMQClientParameterException('Only support http(s) prototol. Invalid endpoint:' . $host); |
|
34 | 34 | } |
35 | 35 | if ($_host[strlen($_host) - 1] == '/') { |
36 | 36 | $this->host = substr($_host, 0, strlen($_host) - 1); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | } elseif ($sign_method == 'sha256') { |
47 | 47 | $this->sign_method = 'HmacSHA256'; |
48 | 48 | } else { |
49 | - throw new CMQClientParameterException('Only support sign method HmasSHA256 or HmacSHA1 . Invalid sign method:'.$sign_method); |
|
49 | + throw new CMQClientParameterException('Only support sign method HmasSHA256 or HmacSHA1 . Invalid sign method:' . $sign_method); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $iTimeout = 0; |
81 | 81 | |
82 | 82 | if (array_key_exists('UserpollingWaitSeconds', $params)) { |
83 | - $iTimeout = (int) $params['UserpollingWaitSeconds']; |
|
83 | + $iTimeout = (int)$params['UserpollingWaitSeconds']; |
|
84 | 84 | } |
85 | 85 | // send request |
86 | 86 | $resp_inter = $this->http->send_request($req_inter, $iTimeout); |