Passed
Push — v6 ( bd826f...f71c30 )
by 光春
02:55
created
src/service/taobao/TbkService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -942,20 +942,20 @@  discard block
 block discarded – undo
942 942
         $sign = $this->createSign();
943 943
         //组织参数
944 944
         $strParam = $this->createStrParam();
945
-        $strParam .= 'sign=' . $sign;
945
+        $strParam .= 'sign='.$sign;
946 946
         //访问服务
947 947
         if ($this->protocol === 'http') {
948 948
             if (empty($this->sandbox)) {
949
-                $url = 'http://gw.api.taobao.com/router/rest?' . $strParam;
950
-            } else {
951
-                $url = 'http://gw.api.tbsandbox.com/router/rest?' . $strParam;
949
+                $url = 'http://gw.api.taobao.com/router/rest?'.$strParam;
950
+            }else {
951
+                $url = 'http://gw.api.tbsandbox.com/router/rest?'.$strParam;
952 952
             }
953 953
         }
954 954
         if ($this->protocol === 'https') {
955 955
             if (empty($this->sandbox)) {
956
-                $url = 'https://eco.taobao.com/router/rest?' . $strParam;
957
-            } else {
958
-                $url = 'https://gw.api.tbsandbox.com/router/rest?' . $strParam;
956
+                $url = 'https://eco.taobao.com/router/rest?'.$strParam;
957
+            }else {
958
+                $url = 'https://gw.api.tbsandbox.com/router/rest?'.$strParam;
959 959
             }
960 960
         }
961 961
         $result = file_get_contents($url);
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
         ksort($this->param);
981 981
         foreach ($this->param as $key => $val) {
982 982
             if ($key !== '' && $val !== '') {
983
-                $sign .= $key . $val;
983
+                $sign .= $key.$val;
984 984
             }
985 985
         }
986 986
         $sign .= $this->app_secret;
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
         $strParam = '';
998 998
         foreach ($this->param as $key => $val) {
999 999
             if ($key !== '' && $val !== '') {
1000
-                $strParam .= $key . '=' . urlencode($val) . '&';
1000
+                $strParam .= $key.'='.urlencode($val).'&';
1001 1001
             }
1002 1002
         }
1003 1003
         return $strParam;
Please login to merge, or discard this patch.