Passed
Pull Request — master (#472)
by
unknown
02:56
created
src/Plugin/Wechat/Pay/Common/QueryPlugin.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
         
40 40
         if (!is_null($payload->get('transaction_id'))) {
41 41
             return $baseUriPath . 'id/' . $payload->get('transaction_id') .
42
-                   '?' . http_build_query($uriParams);
42
+                    '?' . http_build_query($uriParams);
43 43
         }
44 44
 
45 45
         if (!is_null($payload->get('out_trade_no'))) {
46 46
             return $baseUriPath . 'out-trade-no/' . $payload->get('out_trade_no') .
47
-                   '?' . http_build_query($uriParams);
47
+                    '?' . http_build_query($uriParams);
48 48
         }
49 49
 
50 50
         throw new InvalidParamsException(InvalidParamsException::MISSING_NECESSARY_PARAMS);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
                 'sp_mchid' => $config->get('mch_id', ''),
31 31
                 'sub_mchid' => !empty($subMchid) ? $subMchid : $payload->get('sub_mchid', '')
32 32
             ];
33
-        } else {
33
+        }else {
34 34
             $baseUriPath = 'v3/pay/transactions/';
35 35
             $uriParams = [
36 36
                 'mchid' => $config->get('mch_id', '')
Please login to merge, or discard this patch.
src/Plugin/Wechat/Pay/Common/ClosePlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             $baseUriPath = 'v3/pay/partner/transactions/out-trade-no/';
30 30
         }
31 31
 
32
-        return $baseUriPath . $payload->get('out_trade_no'). '/close';
32
+        return $baseUriPath . $payload->get('out_trade_no') . '/close';
33 33
     }
34 34
 
35 35
     /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $config = get_wechat_config($rocket->getParams());
45 45
 
46 46
         //服务商模式-body参数
47
-        $body = [ 'mchid' => $config->get('mch_id', '') ];
47
+        $body = ['mchid' => $config->get('mch_id', '')];
48 48
         if ($this->isServicePartnerMode($config)) {
49 49
             //子商户支持配置文件定义和传参
50 50
             $payload = $rocket->getPayload();
Please login to merge, or discard this patch.
src/Plugin/Wechat/GeneralPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function getUrl(Rocket $rocket): string
59 59
     {
60
-        return get_wechat_base_uri($rocket->getParams()).
60
+        return get_wechat_base_uri($rocket->getParams()) .
61 61
             $this->getUri($rocket);
62 62
     }
63 63
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     protected function isServicePartnerMode($config)
77 77
     {
78 78
         //服务商自收款模式
79
-        if(isset($config['mode']) && $config['mode'] == Pay::MODE_SERVICE) {
79
+        if (isset($config['mode']) && $config['mode'] == Pay::MODE_SERVICE) {
80 80
             return true; 
81 81
         }
82 82
         return false;
Please login to merge, or discard this patch.