@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | if (strpos($host, 'http://') === 0 || strpos($host, 'https://') === 0) { |
| 29 | 29 | $this->host = rtrim($host, '/'); |
| 30 | 30 | } else { |
| 31 | - throw new CMQClientParameterException('Only support http(s) prototol. Invalid endpoint:'.$host); |
|
| 31 | + throw new CMQClientParameterException('Only support http(s) prototol. Invalid endpoint:' . $host); |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | } elseif ($sign_method == 'sha256') { |
| 40 | 40 | $this->sign_method = 'HmacSHA256'; |
| 41 | 41 | } else { |
| 42 | - throw new CMQClientParameterException('Only support sign method HmasSHA256 or HmacSHA1 . Invalid sign method:'.$sign_method); |
|
| 42 | + throw new CMQClientParameterException('Only support sign method HmasSHA256 or HmacSHA1 . Invalid sign method:' . $sign_method); |
|
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $iTimeout = 0; |
| 74 | 74 | |
| 75 | 75 | if (array_key_exists('UserpollingWaitSeconds', $params)) { |
| 76 | - $iTimeout = (int) $params['UserpollingWaitSeconds']; |
|
| 76 | + $iTimeout = (int)$params['UserpollingWaitSeconds']; |
|
| 77 | 77 | } |
| 78 | 78 | // send request |
| 79 | 79 | $resp_inter = $this->http->send_request($req_inter, $iTimeout); |