Passed
Pull Request — master (#1099)
by Songda
02:23
created
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.
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/ReturnAdvancePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'POST',
48
-            '_service_url' => 'v3/ecommerce/refunds/'.$refundId.'/return-advance',
48
+            '_service_url' => 'v3/ecommerce/refunds/' . $refundId . '/return-advance',
49 49
             'sub_mchid' => $payload->get('sub_mchid', $config['sub_mch_id'] ?? ''),
50 50
         ]);
51 51
 
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/ecommerce/refunds/id/'.$refundId.'?sub_mchid='.$payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
48
+            '_service_url' => 'v3/ecommerce/refunds/id/' . $refundId . '?sub_mchid=' . $payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][Marketing][ECommerceRefund][QueryBatchByWxPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/ecommerce/refunds/out-refund-no/'.$outRefundNo.'?sub_mchid='.$payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
48
+            '_service_url' => 'v3/ecommerce/refunds/out-refund-no/' . $outRefundNo . '?sub_mchid=' . $payload->get('sub_mchid', $config['sub_mch_id'] ?? 'null'),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][V3][Marketing][ECommerceRefund][QueryPlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryReturnAdvancePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $rocket->setPayload([
47 47
             '_method' => 'GET',
48
-            '_service_url' => 'v3/ecommerce/refunds/'.$refundId.'/return-advance?sub_mchid='.$payload->get('sub_mchid', $config['sub_mch_id']),
48
+            '_service_url' => 'v3/ecommerce/refunds/' . $refundId . '/return-advance?sub_mchid=' . $payload->get('sub_mchid', $config['sub_mch_id']),
49 49
         ]);
50 50
 
51 51
         Logger::info('[Wechat][V3][Marketing][ECommerceRefund][QueryReturnAdvancePlugin] 插件装载完毕', ['rocket' => $rocket]);
Please login to merge, or discard this patch.
src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@
 block discarded – undo
69 69
     {
70 70
         $invokeConfig = new Config([
71 71
             'appId' => $this->getAppId($payload, $config),
72
-            'timeStamp' => time().'',
72
+            'timeStamp' => time() . '',
73 73
             'nonceStr' => Str::random(32),
74
-            'package' => 'prepay_id='.$prepayId,
74
+            'package' => 'prepay_id=' . $prepayId,
75 75
             'signType' => 'MD5',
76 76
         ]);
77 77
 
Please login to merge, or discard this patch.
src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             'prepayid' => $prepayId,
74 74
             'package' => 'Sign=WXPay',
75 75
             'noncestr' => Str::random(32),
76
-            'timestamp' => time().'',
76
+            'timestamp' => time() . '',
77 77
         ]);
78 78
 
79 79
         $invokeConfig->set('sign', get_wechat_sign_v2($config, $invokeConfig->all()));
Please login to merge, or discard this patch.
src/Plugin/Unipay/Open/StartPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         $certs['cert_id'] = $ssl['serialNumber'] ?? '';
33 33
 
34
-        Pay::get(ConfigInterface::class)->set('unipay.'.$tenant.'.certs', $certs);
34
+        Pay::get(ConfigInterface::class)->set('unipay.' . $tenant . '.certs', $certs);
35 35
 
36 36
         return $certs['cert_id'];
37 37
     }
Please login to merge, or discard this patch.
src/Contract/ProviderInterface.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 
13 13
 interface ProviderInterface
14 14
 {
15
-    public function pay(array $plugins, array $params): null|Collection|MessageInterface|Rocket;
15
+    public function pay(array $plugins, array $params): null | Collection | MessageInterface | Rocket;
16 16
 
17
-    public function query(array $order): Collection|Rocket;
17
+    public function query(array $order): Collection | Rocket;
18 18
 
19
-    public function cancel(array $order): Collection|Rocket;
19
+    public function cancel(array $order): Collection | Rocket;
20 20
 
21
-    public function close(array $order): Collection|Rocket;
21
+    public function close(array $order): Collection | Rocket;
22 22
 
23
-    public function refund(array $order): Collection|Rocket;
23
+    public function refund(array $order): Collection | Rocket;
24 24
 
25
-    public function callback(null|array|ServerRequestInterface $contents = null, ?array $params = null): Collection|Rocket;
25
+    public function callback(null | array | ServerRequestInterface $contents = null, ?array $params = null): Collection | Rocket;
26 26
 
27 27
     public function success(): ResponseInterface;
28 28
 }
Please login to merge, or discard this patch.