Test Failed
Push — master ( ef2848...b459d7 )
by ma
04:16 queued 01:33
created
src/Service/Contract/CompanyAccountVerify.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
      * 必传的值
25 25
      * @var array
26 26
      */
27
-    protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq','ums_reg_id','company_account','trans_amt'];
27
+    protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'ums_reg_id', 'company_account', 'trans_amt'];
28 28
 
29 29
 }
Please login to merge, or discard this patch.
src/Service/Contract/PicUpload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
      * 必传的值
25 25
      * @var array
26 26
      */
27
-    protected $require = ['service', 'accesser_id', 'sign_type', 'request_date','request_seq','pic_base64'];
27
+    protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'pic_base64'];
28 28
 }
Please login to merge, or discard this patch.
src/Service/Contract/RequestAccountVerify.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
      * 必传的值
25 25
      * @var array
26 26
      */
27
-    protected $require = ['service', 'accesser_id', 'sign_type', 'request_date','request_seq','ums_reg_id','company_account'];
27
+    protected $require = ['service', 'accesser_id', 'sign_type', 'request_date', 'request_seq', 'ums_reg_id', 'company_account'];
28 28
 }
Please login to merge, or discard this patch.
src/Service/Wechat/SubOrderConfirm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
22 22
      * 必传的值
23 23
      * @var array
24 24
      */
25
-    protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid','instMid','platformAmount'];
25
+    protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'instMid', 'platformAmount'];
26 26
 }
Please login to merge, or discard this patch.
src/Service/Wechat/SecureComplete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
22 22
      * 必传的值
23 23
      * @var array
24 24
      */
25
-    protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid','instMid','completedAmount'];
25
+    protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'instMid', 'completedAmount'];
26 26
 }
Please login to merge, or discard this patch.
src/Service/Wechat/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
22 22
      * 必传的值
23 23
      * @var array
24 24
      */
25
-    protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid','instMid'];
25
+    protected $require = ['requestTimestamp', 'merOrderId', 'mid', 'tid', 'instMid'];
26 26
 }
Please login to merge, or discard this patch.
src/Service/Common/Base.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @param $config
34 34
      */
35
-    public function __construct($config=[])
35
+    public function __construct($config = [])
36 36
     {
37
-        if(!empty($config)){
37
+        if (!empty($config)) {
38 38
             $this->config = $config;
39 39
             $this->loadConfigGateway();
40 40
         }
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
      */
48 48
     private function loadConfigGateway()
49 49
     {
50
-        $gateway = $this->config['gateway'];// 正式环境
51
-        if($this->config['sandbox'] === false){
52
-            $this->gateway = isset($gateway[$this->gateway_type]) ? $gateway[$this->gateway_type] : $gateway['default'];// 沙箱环境
53
-        }else{
54
-            $this->gateway = $gateway['sandbox'];// 沙箱环境
50
+        $gateway = $this->config['gateway']; // 正式环境
51
+        if ($this->config['sandbox'] === false) {
52
+            $this->gateway = isset($gateway[$this->gateway_type]) ? $gateway[$this->gateway_type] : $gateway['default']; // 沙箱环境
53
+        } else {
54
+            $this->gateway = $gateway['sandbox']; // 沙箱环境
55 55
         }
56 56
 
57 57
         return $this;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             $this->validate();
73 73
             $data = $this->body;
74 74
             $sign = $this->generateSign($data);
75
-            $gateway  = $this->gateway . $this->api;
75
+            $gateway = $this->gateway . $this->api;
76 76
             $data = json_encode($data);
77 77
             if ('cli' == php_sapi_name()) {
78 78
                 echo 'api:' . $gateway . PHP_EOL;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $gateway = $this->config['gateway'];// 正式环境
51 51
         if($this->config['sandbox'] === false){
52 52
             $this->gateway = isset($gateway[$this->gateway_type]) ? $gateway[$this->gateway_type] : $gateway['default'];// 沙箱环境
53
-        }else{
53
+        } else{
54 54
             $this->gateway = $gateway['sandbox'];// 沙箱环境
55 55
         }
56 56
 
Please login to merge, or discard this patch.
src/Tools/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             $defaults[CURLOPT_SSL_VERIFYHOST] = false;
79 79
         }
80 80
 
81
-        curl_setopt_array($ch, (array)$options + $defaults);
81
+        curl_setopt_array($ch, (array) $options + $defaults);
82 82
         $ret = curl_exec($ch);
83 83
         $err = curl_error($ch);
84 84
         if (false === $ret || !empty($err)) {
Please login to merge, or discard this patch.
config/chinaums.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'gateway' => 'https://api-mop.chinaums.com/v1',// 请求网关
5
-    'sandbox_gateway' => 'https://test-api-open.chinaums.com/v1',// 沙箱网关
6
-    'mid'       => '',// 商户号
7
-    'tid'       => '',// 终端号
8
-    'appid'     => '',// APPID
9
-    'appkey'    => '',// KEY
10
-    'sandbox'   => false,// 是否开启沙箱
4
+    'gateway' => 'https://api-mop.chinaums.com/v1', // 请求网关
5
+    'sandbox_gateway' => 'https://test-api-open.chinaums.com/v1', // 沙箱网关
6
+    'mid'       => '', // 商户号
7
+    'tid'       => '', // 终端号
8
+    'appid'     => '', // APPID
9
+    'appkey'    => '', // KEY
10
+    'sandbox'   => false, // 是否开启沙箱
11 11
 ];
Please login to merge, or discard this patch.