Passed
Push — master ( 2ea20b...0aea5b )
by Songda
02:52 queued 31s
created
src/Plugin/Wechat/V3/Pay/Refund/RefundAbnormalPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
         $rocket->mergePayload(array_merge(
56 56
             [
57 57
                 '_method' => 'POST',
58
-                '_url' => 'v3/refund/domestic/refunds/'.$refundId.'/apply-abnormal-refund',
59
-                '_service_url' => 'v3/refund/domestic/refunds/'.$refundId.'/apply-abnormal-refund',
58
+                '_url' => 'v3/refund/domestic/refunds/' . $refundId . '/apply-abnormal-refund',
59
+                '_service_url' => 'v3/refund/domestic/refunds/' . $refundId . '/apply-abnormal-refund',
60 60
             ],
61 61
             $data ?? $this->normal($params, $config, $payload)
62 62
         ))->exceptPayload('refund_id');
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Pay/Native/GetFundBillPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
 
35 35
         $rocket->setPayload([
36 36
             '_method' => 'GET',
37
-            '_url' => 'v3/bill/fundflowbill?'.$query,
38
-            '_service_url' => 'v3/bill/fundflowbill?'.$query,
37
+            '_url' => 'v3/bill/fundflowbill?' . $query,
38
+            '_service_url' => 'v3/bill/fundflowbill?' . $query,
39 39
         ]);
40 40
 
41 41
         Logger::info('[Wechat][V3][Pay][Native][GetFundBillPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Pay/Native/QueryByWxPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 
43 43
         $rocket->setPayload([
44 44
             '_method' => 'GET',
45
-            '_url' => 'v3/pay/transactions/id/'.$transactionId.'?'.$this->normal($config),
46
-            '_service_url' => 'v3/pay/partner/transactions/id/'.$transactionId.'?'.$this->service($payload, $config),
45
+            '_url' => 'v3/pay/transactions/id/' . $transactionId . '?' . $this->normal($config),
46
+            '_service_url' => 'v3/pay/partner/transactions/id/' . $transactionId . '?' . $this->service($payload, $config),
47 47
         ]);
48 48
 
49 49
         Logger::info('[Wechat][Pay][Native][QueryBatchByWxPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Pay/Native/QueryPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 
43 43
         $rocket->setPayload([
44 44
             '_method' => 'GET',
45
-            '_url' => 'v3/pay/transactions/out-trade-no/'.$outTradeNo.'?'.$this->normal($config),
46
-            '_service_url' => 'v3/pay/partner/transactions/out-trade-no/'.$outTradeNo.'?'.$this->service($payload, $config),
45
+            '_url' => 'v3/pay/transactions/out-trade-no/' . $outTradeNo . '?' . $this->normal($config),
46
+            '_service_url' => 'v3/pay/partner/transactions/out-trade-no/' . $outTradeNo . '?' . $this->service($payload, $config),
47 47
         ]);
48 48
 
49 49
         Logger::info('[Wechat][V3][Pay][Native][QueryPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Pay/Native/GetTradeBillPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
 
35 35
         $rocket->setPayload([
36 36
             '_method' => 'GET',
37
-            '_url' => 'v3/bill/tradebill?'.$query,
38
-            '_service_url' => 'v3/bill/tradebill?'.$query,
37
+            '_url' => 'v3/bill/tradebill?' . $query,
38
+            '_service_url' => 'v3/bill/tradebill?' . $query,
39 39
         ]);
40 40
 
41 41
         Logger::info('[Wechat][Pay][Native][GetTradeBillPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Pay/Native/QueryRefundPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
 
44 44
         $rocket->setPayload([
45 45
             '_method' => 'GET',
46
-            '_url' => 'v3/refund/domestic/refunds/'.$outRefundNo,
47
-            '_service_url' => 'v3/refund/domestic/refunds/'.$outRefundNo.'?sub_mchid='.$subMchId,
46
+            '_url' => 'v3/refund/domestic/refunds/' . $outRefundNo,
47
+            '_service_url' => 'v3/refund/domestic/refunds/' . $outRefundNo . '?sub_mchid=' . $subMchId,
48 48
         ]);
49 49
 
50 50
         Logger::info('[Wechat][Pay][Native][QueryRefundPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/AddPayloadSignaturePlugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         $urlPath = parse_url($url, PHP_URL_PATH);
62 62
         $urlQuery = parse_url($url, PHP_URL_QUERY);
63 63
 
64
-        return get_wechat_method($payload)."\n".
65
-            $urlPath.(empty($urlQuery) ? '' : '?'.$urlQuery)."\n".
66
-            $timestamp."\n".
67
-            $random."\n".
68
-            get_wechat_body($payload)."\n";
64
+        return get_wechat_method($payload) . "\n" .
65
+            $urlPath . (empty($urlQuery) ? '' : '?' . $urlQuery) . "\n" .
66
+            $timestamp . "\n" .
67
+            $random . "\n" .
68
+            get_wechat_body($payload) . "\n";
69 69
     }
70 70
 
71 71
     /**
@@ -94,6 +94,6 @@  discard block
 block discarded – undo
94 94
             get_wechat_sign($config, $contents),
95 95
         );
96 96
 
97
-        return 'WECHATPAY2-SHA256-RSA2048 '.$auth;
97
+        return 'WECHATPAY2-SHA256-RSA2048 ' . $auth;
98 98
     }
99 99
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryDayEndPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/merchant/fund/dayendbalance/'.$accountType.$this->service($payload),
48
+            '_service_url' => 'v3/merchant/fund/dayendbalance/' . $accountType . $this->service($payload),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][Marketing][ECommerceBalance][QueryDayEndPlugin] 插件装载完毕', ['rocket' => $rocket]);
@@ -61,6 +61,6 @@  discard block
 block discarded – undo
61 61
             return '';
62 62
         }
63 63
 
64
-        return '?'.$query->query();
64
+        return '?' . $query->query();
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $rocket->setPayload([
45 45
             '_method' => 'GET',
46
-            '_service_url' => 'v3/merchant/fund/balance/'.$accountType,
46
+            '_service_url' => 'v3/merchant/fund/balance/' . $accountType,
47 47
         ]);
48 48
 
49 49
         Logger::info('[Wechat][Marketing][ECommerceBalance][QueryPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.