Completed
Push — master ( 9003b5...eadff5 )
by frey
03:20
created
src/Queue/Driver/CMQClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.