Passed
Push — v6 ( 3606bd...432c9e )
by 光春
03:12
created
src/service/qiniu/SmsService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
     {
312 312
         if (is_object($object)) {
313 313
             $arr = (array)($object);
314
-        } else {
314
+        }else {
315 315
             $arr = &$object;
316 316
         }
317 317
         if (is_array($arr)) {
@@ -345,8 +345,8 @@  discard block
 block discarded – undo
345 345
         $recToken = $auth->authorizationV2($this->url, $this->method, json_encode($this->param), $this->contentType);
346 346
         $rtcToken['Content-Type'] = $this->contentType;
347 347
         dump($recToken);
348
-        dump($this->url . "?" . http_build_query($this->param));
349
-        $ret = Client::get($this->url . "?" . http_build_query($this->param), $recToken);
348
+        dump($this->url."?".http_build_query($this->param));
349
+        $ret = Client::get($this->url."?".http_build_query($this->param), $recToken);
350 350
         dump($ret);
351 351
         $this->output = $ret->json();
352 352
         return $this;
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         $url = parse_url($this->url);
363 363
         $data = $url['path'] ?? '';
364 364
         if (isset($url['query'])) {
365
-            $data .= '?' . $url['query'];
365
+            $data .= '?'.$url['query'];
366 366
         }
367 367
         $data .= "\n";
368 368
         if (isset($this->param) && $this->contentType === 'application/x-www-form-urlencoded') {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
     private function sign($data)
379 379
     {
380 380
         $sign = hash_hmac('sha1', $data, $this->secretKey, true);
381
-        return "Qiniu " . sprintf('%s:%s', $this->accessKey, $this->encode($sign));
381
+        return "Qiniu ".sprintf('%s:%s', $this->accessKey, $this->encode($sign));
382 382
     }
383 383
 
384 384
     /**
Please login to merge, or discard this patch.